( ctx: BuilderContext, contractName: string, override?: Omit<Partial<AllocConfig>, 'storage'>, )
| 75 | } |
| 76 | |
| 77 | export const buildImplContractAlloc = async ( |
| 78 | ctx: BuilderContext, |
| 79 | contractName: string, |
| 80 | override?: Omit<Partial<AllocConfig>, 'storage'>, |
| 81 | ) => |
| 82 | buildAccountAlloc({ |
| 83 | address: override?.address ?? (await ctx.contractLoader.getDeterministicAddress(contractName)), |
| 84 | code: override?.code ?? (await ctx.contractLoader.getCode(contractName)), |
| 85 | balance: override?.balance ?? 0n, |
| 86 | nonce: override?.nonce ?? 1n, |
| 87 | }) |
| 88 | |
| 89 | export const buildSystemContractAlloc = async ({ |
| 90 | ctx, |
no test coverage detected