Skip to content

Commit

Permalink
Update docs/docs/guides/wallet/signing.md
Browse files Browse the repository at this point in the history
Co-authored-by: Muhammad Altabba <[email protected]>
  • Loading branch information
Santiago Trujillo Zuluaga and Muhammad-Altabba authored Jan 7, 2024
1 parent cb6c434 commit 73d2630
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/docs/guides/wallet/signing.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const web3 = new Web3(/* PROVIDER */);
const privateKey = '0x4651f9c219fc6401fe0b3f82129467c717012287ccb61950d2a8ede0687857ba'
const account = web3.eth.accounts.privateKeyToAccount(privateKey);

// Magic happens inside signTransaction. If a transaction is sent from an account that exists in a wallet, it will be automatically signed using that account.
signedTransaction = await account.signTransaction({
from: account.address,
to: '0xe4beef667408b99053dc147ed19592ada0d77f59',
Expand Down

1 comment on commit 73d2630

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 73d2630 Previous: 6c075db Ratio
processingTx 9532 ops/sec (±4.69%) 9301 ops/sec (±4.81%) 0.98
processingContractDeploy 40709 ops/sec (±7.30%) 39129 ops/sec (±7.62%) 0.96
processingContractMethodSend 20604 ops/sec (±6.47%) 19443 ops/sec (±5.19%) 0.94
processingContractMethodCall 40694 ops/sec (±5.03%) 38971 ops/sec (±6.34%) 0.96
abiEncode 47177 ops/sec (±6.49%) 44252 ops/sec (±6.92%) 0.94
abiDecode 33062 ops/sec (±7.10%) 30419 ops/sec (±8.89%) 0.92
sign 1644 ops/sec (±2.92%) 1656 ops/sec (±4.08%) 1.01
verify 386 ops/sec (±0.47%) 373 ops/sec (±0.78%) 0.97

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.