SimpleAccount createAccount and getAddress are returing different addresses.
canismayorisxl opened this issue · 1 comments
canismayorisxl commented
Hello,
I might be doing something wrong here but here is the problem.
I created a new contract Called UserAccountFactory which contains both createAccount and getAddress from SimpleAccount.sol.
I've written the following test for it which fails.
it("Get address returns the same as createAccount", async () => {
const addr1 = await userAccountFactory.callStatic.createAccount(owner.address, 7777);
const addr2 = await userAccountFactory.getAddress(owner.address, 7777);
expect(addr1).to.be.equal(addr2, "Addresses are not equal");
})
Do you have any idea what the problem could be?
canismayorisxl commented
Issue has been resolved...