cli: Update for new OfflineSigner
This commit is contained in:
parent
e08ee36297
commit
ff4ef4a084
@ -74,7 +74,7 @@ const signDoc = makeSignDoc(
|
||||
account_number,
|
||||
sequence,
|
||||
);
|
||||
const { signed, signature } = await wallet.sign(faucetAddress, signDoc);
|
||||
const { signed, signature } = await wallet.signAmino(faucetAddress, signDoc);
|
||||
const signedTx = makeStdTx(signed, signature);
|
||||
const broadcastResult = await client.broadcastTx(signedTx);
|
||||
```
|
||||
|
||||
@ -28,7 +28,7 @@ const { accountNumber, sequence } = await client.getSequence(senderAddress);
|
||||
console.log("Account/sequence:", accountNumber, sequence);
|
||||
|
||||
const signDoc = makeSignDoc([msg], fee, chainId, memo, accountNumber, sequence);
|
||||
const { signed, signature } = await wallet.sign(senderAddress, signDoc);
|
||||
const { signed, signature } = await wallet.signAmino(senderAddress, signDoc);
|
||||
const signedTx = makeStdTx(signed, signature);
|
||||
|
||||
const result = await client.broadcastTx(signedTx);
|
||||
|
||||
@ -176,7 +176,7 @@ export async function main(originalArgs: readonly string[]): Promise<void> {
|
||||
gas: "89000000",
|
||||
};
|
||||
const signDoc = makeSignDoc([], fee, "chain-xyz", "hello, world", 1, 2);
|
||||
const { signed, signature } = await wallet.sign(address, signDoc);
|
||||
const { signed, signature } = await wallet.signAmino(address, signDoc);
|
||||
assert(signed.memo === "hello, world");
|
||||
|
||||
const bechPubkey = "coralvalconspub1zcjduepqvxg72ccnl9r65fv0wn3amlk4sfzqfe2k36l073kjx2qyaf6sk23qw7j8wq";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user