Skip to content

Commit

Permalink
Add new allowance module 0.1.1 to ts files (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmv08 authored Sep 12, 2024
1 parent 254e04b commit 88e1189
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/allowance-module.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import AllowanceModule010 from './assets/allowance-module/v0.1.0/allowance-module.json';
import AllowanceModule011 from './assets/allowance-module/v0.1.1/allowance-module.json';
import { DeploymentFilter, Deployment } from './types';
import { applyFilterDefaults, findDeployment } from './utils';

// The array should be sorted from the latest version to the oldest.
const ALLOWANCE_MODULE_DEPLOYMENTS: Deployment[] = [AllowanceModule010];
const ALLOWANCE_MODULE_DEPLOYMENTS: Deployment[] = [AllowanceModule011, AllowanceModule010];

export const getAllowanceModuleDeployment = (filter?: DeploymentFilter): Deployment | undefined => {
return findDeployment(applyFilterDefaults(filter), ALLOWANCE_MODULE_DEPLOYMENTS);
Expand Down

0 comments on commit 88e1189

Please sign in to comment.