diff --git a/package-lock.json b/package-lock.json index 9d92277..5ea5b03 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@terra-money/legacy.proto": "npm:@terra-money/terra.proto@^0.1.7", - "@terra-money/terra.proto": "5.1.0-beta.2", + "@terra-money/terra.proto": "^5.1.0-beta.3", "assert": "^2.0.0", "axios": "^0.27.2", "bech32": "^2.0.0", @@ -1291,9 +1291,9 @@ "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" }, "node_modules/@terra-money/terra.proto": { - "version": "5.1.0-beta.2", - "resolved": "https://registry.npmjs.org/@terra-money/terra.proto/-/terra.proto-5.1.0-beta.2.tgz", - "integrity": "sha512-2PxA+0ImHOS+0y8JvGzQXE2AwG5CpWpgq7PL8orE2m6dTWJYfEFxjZGmo1ID9/6aOa1T09dvkHNvTHPg2q06/Q==", + "version": "5.1.0-beta.3", + "resolved": "https://registry.npmjs.org/@terra-money/terra.proto/-/terra.proto-5.1.0-beta.3.tgz", + "integrity": "sha512-y69nixzKxV5AK/4Kgza/eF+0Ez++xpbnse5LrYI7ar43OMWP59gxeASeTZPLsbx8bG5CsqCtcRT/klFtwsDzXA==", "dependencies": { "@improbable-eng/grpc-web": "^0.14.1", "browser-headers": "^0.4.1", diff --git a/package.json b/package.json index c87a4ce..0c64ee7 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ }, "dependencies": { "@terra-money/legacy.proto": "npm:@terra-money/terra.proto@^0.1.7", - "@terra-money/terra.proto": "5.1.0-beta.2", + "@terra-money/terra.proto": "^5.1.0-beta.3", "assert": "^2.0.0", "axios": "^0.27.2", "bech32": "^2.0.0", @@ -104,4 +104,4 @@ "utf-8-validate": "^5.0.5", "ws": "^7.5.9" } -} \ No newline at end of file +} diff --git a/src/core/smartaccount/v1/models/Initialization.ts b/src/core/smartaccount/v1/models/Initialization.ts index b510940..f19f68f 100644 --- a/src/core/smartaccount/v1/models/Initialization.ts +++ b/src/core/smartaccount/v1/models/Initialization.ts @@ -16,29 +16,24 @@ export class Initialization extends JSONSerializable< * @param contractAddress contract address of authorization logic * @param initMsg initial message to be passed to the contract */ - constructor( - public senders: string[], - public account: string, - public msg: Uint8Array - ) { + constructor(public account: string, public msg: Uint8Array) { super(); } public static fromAmino(data: Initialization.Amino): Initialization { const { - value: { senders, account, msg }, + value: { account, msg }, } = data; const buf = Buffer.from(msg, 'ascii'); const msgBs = new Uint8Array(buf); - return new Initialization(senders, account, msgBs); + return new Initialization(account, msgBs); } public toAmino(): Initialization.Amino { - const { senders, account, msg } = this; + const { account, msg } = this; const base64Str = Buffer.from(msg).toString('ascii'); return { value: { - senders, account, msg: base64Str, }, @@ -46,30 +41,28 @@ export class Initialization extends JSONSerializable< } public static fromData(data: Initialization.Data): Initialization { - const { senders, account, msg } = data; + const { account, msg } = data; const buf = Buffer.from(msg, 'ascii'); const msgBs = new Uint8Array(buf); - return new Initialization(senders, account, msgBs); + return new Initialization(account, msgBs); } public toData(): Initialization.Data { - const { senders, account, msg } = this; + const { account, msg } = this; const base64Str = Buffer.from(msg).toString('ascii'); return { - senders, account, msg: base64Str, }; } public static fromProto(proto: Initialization.Proto): Initialization { - return new Initialization(proto.senders, proto.account, proto.msg); + return new Initialization(proto.account, proto.msg); } public toProto(): Initialization.Proto { - const { senders, account, msg } = this; + const { account, msg } = this; return Initialization_pb.fromPartial({ - senders, account, msg, }); @@ -89,14 +82,12 @@ export class Initialization extends JSONSerializable< export namespace Initialization { export interface Amino { value: { - senders: string[]; account: string; msg: string; }; } export interface Data { - senders: string[]; account: string; msg: string; }