Linked Questions

6
votes
1answer
3k views

how to import an already deployed contract into my contract [duplicate]

I have two smart contracts, the first which i intend to deploy first then after a couple of days the other will follow. my issue is how to import this contract i have already deployed and use its ...
0
votes
1answer
604 views

How to call a function from deployed contract to another contract? [duplicate]

I created a basic ERC20 token contract and deployed in rinkeby testnet and I got the contract address now I want to call transfer() function from this deployed contract to another contract without ...
15
votes
2answers
11k views

Whats the difference between .call.value() and .call.value()()

contract Test { function Test(){ msg.sender.call.value(0); msg.sender.call.value(0)(); } } Whats the difference here between the first and second call? My hunch is the 1st ...
11
votes
1answer
6k views

How to call a library contract

library ECVerify is deployed on 0x3bbb367afe5075e0461f535d6ed2a640822edb1c on the Ropsten test net. How do I call function ecverify(bytes32 hash, bytes sig, address signer) returns (bool) {} in that ...
8
votes
1answer
5k views

How can a deployed contract call another deployed contract by _interface_ and address?

There is a nice article about writing upgradable Solidity code article about writing upgradable Solidity code The question is however (ref the article) if ITokenLedger is intentionally "contract" and ...
3
votes
1answer
4k views

How to call a function from an already deployed contract?

I tried to use the function "Call", as described here: Calling function from deployed contract But seems it is not working at all. How can I call a function from an existing deployed smart contract? ...
0
votes
2answers
206 views

Calling a function in external contract: “type bool is not implicitly convertible to uint256”

I have an ERC20 token contract (say at address 0x0a6ebb3690b7983e470D3aBFB86636cf64925B98) with the totalSupply() function: function totalSupply() constant returns (uint256) { return ...
0
votes
1answer
174 views

How do I watch Events from multiple contracts

I wrote a script that is able to read events from one contract address and then paste it into a .csv. Now I would like to extend that script listening watching/reading the same event of several ...
2
votes
2answers
62 views

Is it possible to implement the essence of smart-contract into another one before deploying the first one?

My question means for example that the primary contract stores names of secondary contracts, for example like this: mapping (address => string) secondaryContractNames; I know we can in the ...
0
votes
2answers
45 views

Can i use a contract which is deployed

I just have a question in my mind. can I use the contracts which are already deployed so that I can use them without even myself have to deploy it again. For example, take SafeMath I think I would ...