Create authInfo with type

This commit is contained in:
Simon Warta 2022-11-24 19:18:58 +01:00
parent 7a5cebaab5
commit 51ca98eda1

View File

@ -46,7 +46,7 @@ export function makeAuthInfoBytes(
);
assert(feePayer === undefined || typeof feePayer === "string", "feePayer must be undefined or string");
const authInfo = {
const authInfo = AuthInfo.fromPartial({
signerInfos: makeSignerInfos(signers, signMode),
fee: {
amount: [...feeAmount],
@ -54,8 +54,8 @@ export function makeAuthInfoBytes(
granter: feeGranter,
payer: feePayer,
},
};
return AuthInfo.encode(AuthInfo.fromPartial(authInfo)).finish();
});
return AuthInfo.encode(authInfo).finish();
}
export function makeSignDoc(