Skip to content

Commit

Permalink
fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad-Altabba committed Mar 27, 2024
1 parent fb38ae2 commit 0833086
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/web3-eth-contract/src/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1111,8 +1111,15 @@ export class Contract<Abi extends ContractAbi>
`Multiple methods found that is compatible with the given inputs.\n\tFound ${
applicableMethodAbi.length
} compatible methods: ${JSON.stringify(
applicableMethodAbi.map(m => m.methodNameWithInputs + ' -> ' + methodAbi.signature),
)} \n\tThe first one will be used: ${methodAbi.methodNameWithInputs}`,
applicableMethodAbi.map(
m =>
`${(m as { methodNameWithInputs: string }).methodNameWithInputs} (${
(m as { signature: string }).signature
})`,
),
)} \n\tThe first one will be used: ${
(methodAbi as { methodNameWithInputs: string }).methodNameWithInputs
}`,
);
// TODO: 5.x Should throw a new error with the list of methods found.
// Related issue: https://github.com/web3/web3.js/issues/6923
Expand Down

1 comment on commit 0833086

@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: 0833086 Previous: 6c075db Ratio
processingTx 9341 ops/sec (±3.71%) 9301 ops/sec (±4.81%) 1.00
processingContractDeploy 38661 ops/sec (±6.84%) 39129 ops/sec (±7.62%) 1.01
processingContractMethodSend 20112 ops/sec (±6.22%) 19443 ops/sec (±5.19%) 0.97
processingContractMethodCall 38226 ops/sec (±5.63%) 38971 ops/sec (±6.34%) 1.02
abiEncode 44181 ops/sec (±6.50%) 44252 ops/sec (±6.92%) 1.00
abiDecode 29157 ops/sec (±7.84%) 30419 ops/sec (±8.89%) 1.04
sign 1604 ops/sec (±1.35%) 1656 ops/sec (±4.08%) 1.03
verify 376 ops/sec (±0.60%) 373 ops/sec (±0.78%) 0.99

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

Please sign in to comment.