Skip to content

Commit a02a7a9

Browse files
committed
fix v2 comp tests
1 parent a30dfda commit a02a7a9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/mina/v2/account-update.unit-test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
testV2Encoding,
3636
} from './test/utils.js';
3737

38+
import { protocolVersions } from '../../../bindings/crypto/constants.js';
3839
import { Types } from '../../../bindings/mina-transaction/v1/types.js';
3940
import { hashWithPrefix, packToFields } from '../../../lib/provable/crypto/poseidon.js';
4041

@@ -273,7 +274,7 @@ const v1AccountUpdate: TypesV1.AccountUpdate = {
273274
update: {
274275
appState: new Array(ZkappConstants.MAX_ZKAPP_STATE_FIELDS).fill({
275276
isSome: new Bool(true),
276-
value: new Field(8),
277+
value: new Field(32),
277278
}),
278279
delegate: { isSome: new Bool(true), value: publicKey },
279280
verificationKey: {
@@ -291,7 +292,7 @@ const v1AccountUpdate: TypesV1.AccountUpdate = {
291292
setPermissions: V1Auth.Proof,
292293
setVerificationKey: {
293294
auth: V1Auth.Signature,
294-
txnVersion: new UInt32(3),
295+
txnVersion: new UInt32(protocolVersions.txnVersion),
295296
},
296297
setZkappUri: V1Auth.Signature,
297298
editActionState: V1Auth.Proof,

0 commit comments

Comments
 (0)