Update transaction details and enhance logging in App component
- Changed the recipient address in the balance transfer transaction. - Added logging for the result of the transaction in a human-readable format.
This commit is contained in:
1 parent
54c2c2141f
commit
a1aadf8fbc
3 files changed
+39
-58
No files matched your search
+2
-1
@@ -34,11 +34,12 @@ function App() {
|
||||
}
|
||||
const apiPromise = new GearApi({ providerAddress: 'wss://rpc.vara.network' });
|
||||
await apiPromise.isReady;
|
||||
const tx = apiPromise.balance.transfer('kGi1Ui7VXBFmPmaoMD5xgWd2VHNixZ5BbLNhHFYD39T85rUi3', 100)
|
||||
const tx = apiPromise.balance.transfer('kGgMeagrS8yiLMech46HKYGBti5bxyQ5VrRYyD2EgTDvY9jj2', 100)
|
||||
console.log('[VARANINJECT] tx', tx);
|
||||
// @ts-expect-error - signer is not typed
|
||||
const result = await tx.signAndSend(address, { signer: extension?.signer })
|
||||
console.log('[VARANINJECT] result', result);
|
||||
console.log('[VARANINJECT] result toHuman', result.toHuman());
|
||||
}
|
||||
|
||||
const signTransaction = async () => {
|
||||
|
||||
Reference in new issue
Block a user