Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [function-override]

The tag has no usage guidance.

0
votes
1answer
74 views

How to call function with two different signatures/parameters? [duplicate]

In my contract I have two functions with the same name, but with different number of parameters, like so: function computeVote(uint sku, uint sellerId, uint8 _rating) public {...} and function ...
0
votes
1answer
99 views

confused about the concept of overriding

Question in one sentence: Solidity does not support the variable overriding? Consider a following code: contract B { function set() {} function f() { set(); } } contract A is B { ...
0
votes
1answer
46 views

Calling overloaded function from geth client

Attaching a geth client to a ganache-cli instance: $ geth attach http://localhost:8550 Welcome to the Geth JavaScript console! instance: EthereumJS TestRPC/v2.0.2/ethereum-js coinbase: ...
3
votes
2answers
325 views

ERC-721 safeTransferFrom is overloaded?

According to ERC-721 interface the function safeTransferFrom seems to be overloaded: function safeTransferFrom(address _from, address _to, uint256 _tokenId) public; function safeTransferFrom(address ...
4
votes
1answer
302 views

Truffle test fails to call the base function, wants the override

I have an extended ERC20 contract with ERC827 functions, which are overrides of ERC20 with an extra callback parameter. I have these two pairs of base/override functions: Base: function ...