Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Aug 21, 2024
1 parent 8906941 commit 397f11f
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions yarn-project/aztec.js/src/wallet/account_wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export class AccountWallet extends BaseWallet {
this,
AztecAddress.fromBigInt(CANONICAL_KEY_REGISTRY_ADDRESS),
this.getRotateNpkMAbi(),
[this.getAddress(), derivePublicKeyFromSecretKey(newNskM).toNoirStruct(), Fr.ZERO],
[this.getAddress(), derivePublicKeyFromSecretKey(newNskM).toWrappedNoirStruct(), Fr.ZERO],
);

await interaction.send().wait();
Expand Down Expand Up @@ -274,12 +274,36 @@ export class AccountWallet extends BaseWallet {
name: 'new_npk_m',
type: {
fields: [
{ name: 'x', type: { kind: 'field' } },
{ name: 'y', type: { kind: 'field' } },
{ name: 'is_infinite', type: { kind: 'boolean' } },
{
name: 'inner',
type: {
fields: [
{
name: 'x',
type: {
kind: 'field',
},
},
{
name: 'y',
type: {
kind: 'field',
},
},
{
name: 'is_infinite',
type: {
kind: 'boolean',
},
},
],
kind: 'struct',
path: 'std::embedded_curve_ops::EmbeddedCurvePoint',
},
},
],
kind: 'struct',
path: 'std::embedded_curve_ops::EmbeddedCurvePoint',
path: 'aztec::keys::public_keys::NpkM',
},
visibility: 'private' as ABIParameterVisibility,
},
Expand Down

0 comments on commit 397f11f

Please sign in to comment.