Skip to content

Commit 81650b0

Browse files
[hebao_v2] changeMasterCopy test (#2630)
1 parent 5ce8a39 commit 81650b0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/hebao_v2/test/upgrade.spec.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ describe("wallet", () => {
4141
newSmartWalletImpl = await newWalletImpl();
4242
});
4343

44-
describe("upgrade", () => {
44+
describe.only("upgrade", () => {
4545
it("wallet owner should be able to upgrade impl with enough approvals", async () => {
4646
const validUntil = 9999999999;
4747
const currentImpl = await wallet.getMasterCopy();
48+
console.log("old impl:", currentImpl);
4849
const sig1 = signChangeMasterCopy(
4950
wallet.address,
5051
currentImpl,
@@ -78,8 +79,10 @@ describe("wallet", () => {
7879
newSmartWalletImpl.address
7980
);
8081

81-
// const masterCopyOfWallet = await wallet.getMasterCopy();
82-
// console.log("masterCopyofwallet:", masterCopyOfWallet);
82+
const masterCopyOfWallet = await wallet.getMasterCopy();
83+
console.log("masterCopyofwallet:", masterCopyOfWallet);
84+
85+
expect(masterCopyOfWallet).to.equal(newSmartWalletImpl.address);
8386
});
8487
});
8588
});

0 commit comments

Comments
 (0)