Skip to content

Commit

Permalink
tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad-Altabba committed Mar 27, 2024
1 parent 0833086 commit 215e168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web3-eth-contract/src/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ export class Contract<Abi extends ContractAbi>
}
if (applicableMethodAbi.length === 1) {
[methodAbi] = applicableMethodAbi; // take the first item that is the only item in the array
} else {
} else if (applicableMethodAbi.length > 1) {
[methodAbi] = applicableMethodAbi; // take the first item in the array
console.warn(
`Multiple methods found that is compatible with the given inputs.\n\tFound ${
Expand Down

1 comment on commit 215e168

@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: 215e168 Previous: 6c075db Ratio
processingTx 9237 ops/sec (±4.67%) 9301 ops/sec (±4.81%) 1.01
processingContractDeploy 37035 ops/sec (±7.57%) 39129 ops/sec (±7.62%) 1.06
processingContractMethodSend 19576 ops/sec (±6.13%) 19443 ops/sec (±5.19%) 0.99
processingContractMethodCall 39217 ops/sec (±3.73%) 38971 ops/sec (±6.34%) 0.99
abiEncode 41359 ops/sec (±7.26%) 44252 ops/sec (±6.92%) 1.07
abiDecode 29752 ops/sec (±8.54%) 30419 ops/sec (±8.89%) 1.02
sign 1555 ops/sec (±4.07%) 1656 ops/sec (±4.08%) 1.06
verify 376 ops/sec (±0.35%) 373 ops/sec (±0.78%) 0.99

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

Please sign in to comment.