Type improvement : <contract>.functions could be ContractFunctions<ContractTransaction>
See original GitHub issuecould be readonly functions: { [ name: string ]: ContractFunction<ContractTransaction> };
or am I missing something ?
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Contracts — Web3.py 5.31.3 documentation - Read the Docs
This variation mirrors ConciseContract , but it invokes all methods as a transaction rather than a call, so if the classic contract had...
Read more >Solidity Best Practices for Smart Contract Security - ConsenSys
From monitoring to timestamp considerations, here are some pro tips to ensure your Ethereum smart contracts are fortified.
Read more >Contracts — Solidity 0.8.17 documentation
It is a compile-time type check, which can be circumvented doing invalid explicit conversions between contract types, because the compiler can verify that...
Read more >Smart contract development: Common mistakes to avoid
Learn about common smart contract development mistakes to avoid to protect contracts from attacks and prevent monetary loss.
Read more >Interact with your contracts - Truffle Suite
When you execute a contract function via a call you will receive the return value immediately. In summary, calls: Are free (do not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There is no read-only or write-only buckets. All buckets have all functions, including the root. The buckets just change how those methods operate. For any given method all these operations have cases that a given bucket is useful.
If you ever needed just the read-only, you could use
contract.interface.functions.filter(f => f.constant)
and if you wanted state-changingcontract.interface.functions.filter(f => !f.constant)
. Or you could find only payable or only non-payable or only pure… Whatever category you wanted. But those cases are not common, so I don’t see a need for a short-cut. 😃For a somewhat more complete explanation, see here although it could certainly use more examples…
I think the OP has been answered, so I’m going to close this now. Please feel free to re-open if I’m mistaken though.
Thanks! 😃