Simplify name to makeSignDoc
This commit is contained in:
@@ -66,7 +66,7 @@ const sendTokensMsg: MsgSend = {
|
||||
},
|
||||
};
|
||||
|
||||
const signDoc = makeStdSignDoc(
|
||||
const signDoc = makeSignDoc(
|
||||
[sendTokensMsg],
|
||||
defaultFee,
|
||||
defaultNetworkId,
|
||||
|
||||
@@ -27,7 +27,7 @@ console.log("Connected to chain:", chainId);
|
||||
const { accountNumber, sequence } = await client.getSequence(senderAddress);
|
||||
console.log("Account/sequence:", accountNumber, sequence);
|
||||
|
||||
const signDoc = makeStdSignDoc([msg], fee, chainId, memo, accountNumber, sequence);
|
||||
const signDoc = makeSignDoc([msg], fee, chainId, memo, accountNumber, sequence);
|
||||
const { signature } = await wallet.sign(senderAddress, signDoc);
|
||||
const signedTx: StdTx = {
|
||||
msg: [msg],
|
||||
|
||||
@@ -98,7 +98,7 @@ export async function main(originalArgs: readonly string[]): Promise<void> {
|
||||
"encodeSecp256k1Signature",
|
||||
"logs",
|
||||
"makeCosmoshubPath",
|
||||
"makeStdSignDoc",
|
||||
"makeSignDoc",
|
||||
"IndexedTx",
|
||||
"BroadcastTxResult",
|
||||
"Coin",
|
||||
@@ -166,7 +166,7 @@ export async function main(originalArgs: readonly string[]): Promise<void> {
|
||||
amount: coins(5000000, "ucosm"),
|
||||
gas: "89000000",
|
||||
};
|
||||
const signDoc = makeStdSignDoc([], fee, "chain-xyz", "hello, world", 1, 2);
|
||||
const signDoc = makeSignDoc([], fee, "chain-xyz", "hello, world", 1, 2);
|
||||
const { signed, signature } = await wallet.sign(address, signDoc);
|
||||
assert(signed.memo === "hello, world");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user