Calling a Non-Constant Method
See original GitHub issueWhen I call a non-constant method with ethers,I follow the ethers guide ethers , it always return this transaction hash and transaction result together.
I just use metamsk, so I just modify json-rpc provider like below at json-rpc-provider.ts
return this.sendUncheckedTransaction(transaction).then(function (hash){
let tx = {hash}
return _this.provider._wrapTransaction(tx, hash);
})
// return this.sendUncheckedTransaction(transaction).then(function (hash) {
// return web_1.poll(function () {
// return _this.provider.getTransaction(hash).then(function (tx) {
// if (tx === null) {
// return undefined;
// }
// return _this.provider._wrapTransaction(tx, hash);
// });
// }, { fastRetry: 250, onceBlock: _this.provider }).catch(function (error) {
// error.transactionHash = hash;
// throw error;
// });
// });
I hope official could fixed this for all provider
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Call non-const function on a const object - c++ - Stack Overflow
1 Answer 1 · If the function is non-constant, it can only be called by a non-constant object. · If the function is...
Read more >Can we call non-constant function in constant function? - Quora
You talk about “functions”; not “methods”; which means your question is “flawed”; somehow; you _can_ call _any_ kind of a function; within a...
Read more >Variable functions - Manual - PHP
PHP supports the concept of variable functions. This means that if a variable name has parentheses appended to it, PHP will look for...
Read more >Calling Methods - CODESYS Online Help
You call a method via a pointer to a function block (for example pfub^.method ). ; You call the method of an interface...
Read more >Calling methods and accessing instance variables
An instance variable is accessed with the expression referenceVariable.instanceVariableName. Similarly, a method is called with the expression ...
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
@ricmoo cool, you’re right, thanks a lot ^0^
Closing this now, but if you have any further questions, please feel free to re-open.
Thanks! 😃