@@ -13,7 +13,7 @@ import { ethers } from 'ethers'
1313import { AbiFunction , Address , Hex , Provider , RpcTransport , Secp256k1 } from 'ox'
1414import { fromRpcStatus } from 'ox/TransactionReceipt'
1515import { assert , beforeEach , describe , expect , it } from 'vitest'
16- import { MIGRATION_V1_V3_NONCE_SPACE , Migration_v1v3 } from '../src/migrations/v1/migration_v1_v3 .js'
16+ import { MIGRATION_V1_V3_NONCE_SPACE , MigrationEncoder_v1v3 } from '../src/migrations/v1/encoder_v1_v3 .js'
1717import { VersionedContext } from '../src/types.js'
1818import { createMultiSigner , MultiSigner } from './testUtils.js'
1919
@@ -28,7 +28,7 @@ const convertContextToV3Context = (context: v2commons.context.WalletContext): V3
2828 }
2929}
3030
31- describe ( 'Migration_v1v3 ' , ( ) => {
31+ describe ( 'MigrationEncoder_v1v3 ' , ( ) => {
3232 let anvilSigner : MultiSigner
3333 let testSigner : MultiSigner
3434
@@ -38,12 +38,12 @@ describe('Migration_v1v3', () => {
3838 }
3939 let chainId : number
4040
41- let migration : Migration_v1v3
41+ let migration : MigrationEncoder_v1v3
4242
4343 let testAddress : Address . Address
4444
4545 beforeEach ( async ( ) => {
46- migration = new Migration_v1v3 ( )
46+ migration = new MigrationEncoder_v1v3 ( )
4747 const url = 'http://127.0.0.1:8545'
4848 providers = {
4949 v2 : ethers . getDefaultProvider ( url ) ,
@@ -546,6 +546,11 @@ describe('Migration_v1v3', () => {
546546 weight : 1 ,
547547 address : testSigner . address ,
548548 } ,
549+ // Include a random signer to avoid image hash collisions
550+ {
551+ weight : 1 ,
552+ address : Address . fromPublicKey ( Secp256k1 . getPublicKey ( { privateKey : Secp256k1 . randomPrivateKey ( ) } ) ) ,
553+ } ,
549554 ] ,
550555 }
551556 const v1ImageHash = v1 . config . ConfigCoder . imageHashOf ( v1Config )
0 commit comments