Skip to content

Commit 757b846

Browse files
committed
fix wrong variable
1 parent a18639d commit 757b846

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

evm-tests/test/pure-proxy.precompile.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,18 +95,18 @@ describe("Test pure proxy precompile", () => {
9595
})
9696

9797
it("Call createPureProxy, add multiple proxies", async () => {
98-
const contract = new ethers.Contract(IPROXY_ADDRESS, IProxyABI, evmWallet1)
98+
const contract = new ethers.Contract(IPROXY_ADDRESS, IProxyABI, evmWallet)
9999
const type = 0;
100100
const delay = 0;
101101
const index = 0;
102-
const proxies = await getProxies(api, convertH160ToSS58(evmWallet1.address))
102+
const proxies = await getProxies(api, convertH160ToSS58(evmWallet.address))
103103
const length = proxies.length
104104
for (let i = 0; i < 5; i++) {
105105
const tx = await contract.createPureProxy(type, delay, index)
106106
await tx.wait()
107107

108108
await new Promise(resolve => setTimeout(resolve, 500));
109-
const currentProxies = await getProxies(api, convertH160ToSS58(evmWallet1.address))
109+
const currentProxies = await getProxies(api, convertH160ToSS58(evmWallet.address))
110110
assert.equal(currentProxies.length, length + i + 1, "proxy should be set")
111111
}
112112
})

0 commit comments

Comments
 (0)