Skip to content

Commit

Permalink
export more erc20 and multicall3 interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
novaliu86 committed Jul 3, 2024
1 parent 6c8e4b4 commit ddd729f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/simulation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import erc20 from './abi/erc20.json' assert { type: "json" };
// @ts-ignore
import multicall3Revised from './abi/multicall3Revised.json' assert { type: "json" };

const erc20Interface: Interface = new Interface(erc20.abi);
const multicallInterface: Interface = new Interface(multicall3Revised.abi);
export const erc20Interface: Interface = new Interface(erc20.abi);
export const multicallInterface: Interface = new Interface(multicall3Revised.abi);
export const multicallDeployedCode: string = multicall3Revised.deployedBytecode;

const getGasForCalldata = (calldata: string): bigint => {
export const getGasForCalldata = (calldata: string): bigint => {

let zeros: bigint = 0n;
let nonZeros: bigint = 0n;
Expand Down Expand Up @@ -75,7 +76,7 @@ export class SettlementSimulation {
.asif(
addressAt(senderAddress)
.code()
.is(multicall3Revised.deployedBytecode)
.is(multicallDeployedCode)
);

if (!wrapInput) {
Expand Down

0 comments on commit ddd729f

Please sign in to comment.