Skip to content

Commit

Permalink
fix abi const (#6797)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex authored Feb 8, 2024
1 parent 998954f commit 0881fe1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
{
/*
This file is part of web3.js.
web3.js is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
web3.js is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
*/

export const Abi = {
anonymous: false,
constant: true,
inputs: [
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-eth-contract/test/unit/contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { Web3ContractError } from 'web3-errors';
import { Web3Context , Web3ConfigEvent } from 'web3-core';
import { Web3ValidatorError } from 'web3-validator';
import { AbiItem } from 'web3-utils';
import {Abi} from '../fixtures/Abi.json'
import {Abi} from '../fixtures/AbiItem'
import { Contract } from '../../src';
import { sampleStorageContractABI } from '../fixtures/storage';
import { GreeterAbi, GreeterBytecode } from '../shared_fixtures/build/Greeter';
Expand Down

1 comment on commit 0881fe1

@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: 0881fe1 Previous: 6c075db Ratio
processingTx 9318 ops/sec (±4.26%) 9301 ops/sec (±4.81%) 1.00
processingContractDeploy 38943 ops/sec (±8.23%) 39129 ops/sec (±7.62%) 1.00
processingContractMethodSend 19502 ops/sec (±6.85%) 19443 ops/sec (±5.19%) 1.00
processingContractMethodCall 38324 ops/sec (±5.96%) 38971 ops/sec (±6.34%) 1.02
abiEncode 43785 ops/sec (±7.34%) 44252 ops/sec (±6.92%) 1.01
abiDecode 30517 ops/sec (±8.86%) 30419 ops/sec (±8.89%) 1.00
sign 1597 ops/sec (±3.21%) 1656 ops/sec (±4.08%) 1.04
verify 379 ops/sec (±0.67%) 373 ops/sec (±0.78%) 0.98

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

Please sign in to comment.