Merge pull request #1331 from cosmos/prettyfy-some-code

Create authInfo with type
This commit is contained in:
Simon Warta 2022-11-24 20:18:44 +01:00 committed by GitHub
commit 74346b2ce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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(