Dave Appleton
  • Member for 5 years, 11 months
  • Last seen this week
Issues with autogenerated go file while using abigen
0 votes

One problem I find with abigen these days is that when you build a new project you will download the latest geth imports into that project. Your ABIGEN on the other hand tends comes from your ...

View answer
Gnosis Wallet - Multisig not really working as multisig
1 votes

You deployed the wallet with daily limit. In this wallet, an owner can withdraw up to a daily limit without multisig. If this isn't what you wanted, you can use the regular wallet without daily limit,...

View answer
Is it possible to instantiate a deployed contract in js using contract address alone? without copying abi data?
0 votes

Simple answer : too difficult to be practical unless you know it follows a standard (hence can imply most of the ABI) Sometimes answer : you could query etherscan and similar services that could ...

View answer
How should I multiply ether by a decimal?
0 votes

fixed point math does not work in solidity yet. See https://solidity.readthedocs.io/en/v0.4.24/types.html That is why you need to use the methods listed above.

View answer
How is it possible for 0x0000000000000000000000000000000000000000 to send out ERC-20 tokens?
1 votes

Additionally, you can find transactions of certain tokens from addresses that could not possibly send them by emitting bogus Transfer events to fool etherscan into recognising it as a token transfer. ...

View answer
ecrecover from Geth and web3.eth.sign
0 votes

The following article may explain the "\x19EthereumSignedMessage" part https://blog.ricmoo.com/verifying-messages-in-solidity-50a94f82b2ca

View answer
Private vs internal cheaper
-2 votes

https://solidity.readthedocs.io/en/latest/contracts.html?highlight=private internal: Those functions and state variables can only be accessed internally (i.e. from within the current contract or ...

View answer
go-ethereum: SimulateBackend AdjustTime is not adjusting time at all, or either in unexpected ways
Accepted answer
1 votes

Are you doing a client.Commit() afterwards. I can't remember if it is necessary - but I have got into the habit of doing it so I assume it is. The only way you will be able to test this function is ...

View answer
Examples to clarify Storage vs Memory assignments / return parameters
0 votes

in this case a is in memory. You can handle your return in TWO ways function funcB(uint[] x) public returns (uint a) { // x is in memory uint z = 100; return z; // or return 100 directly } ...

View answer
How do I detect a failed transaction after the Byzantium fork as the REVERT opcode does not consume all gas?
0 votes

Hate to tell you - but sometimes the used gas and the supplied gas are the same and it succeeded. Can't remember which, think it was Parity - where the estimates are 100% accurate.

View answer
How to access public contract storage with Go?
Accepted answer
2 votes

abigen supports variables too - but as functions, from my current code mapping (address => uint256) public deposits; translates to func (_HelloGoldSale *HelloGoldSaleCaller) Deposits(opts *...

View answer
Receive a token from a smart contract by sending it a 'code word'
0 votes

I can't see how you would do this for more than one occurrence. The first one could be a long string where you store the hash value inside the contract. The downside is, once Alice has sent the ...

View answer
ERC-20 tokens and freezing accounts
5 votes

It makes sense for your balances mapping to be a mapping of structures struct Account { uint256 cash; bool passedKYC; } mapping(address=>Account) balances; Then ...

View answer
What's wrong with this Golang code for transaction signing? Invalid v,r,s error?
3 votes

I don't know if this will help in any way at all but I had something I wrote just before abigen was introduced. I have tried to keep it updated (no 100% guarantee) github.com/DaveAppleton/ether_go ...

View answer
What Is The Easiest Way To Split ETC from ETH in 2017
1 votes

In 2017 after EIP155 you can simply make two transactions, one on each chain. Ensure that you are using the latest MIST wallet which I am assuming is on the ETH chain. A) Use your standard ETH wallet ...

View answer
How to call "geth attach" on --testnet better than writing full path?
0 votes

Since you will normally only run the testnet or the main net - why not fix your ipc always in the same place in the main call to geth? Then geth attach (and MIST) knows where to look for it....

View answer
How to bind Go auto-generated code to a smart contract over IPC?
1 votes

You need to use ethClient now I am binding an object called NewMaths... import "github.com/ethereum/go-ethereum/ethclient" ... func getClient() (client *ethclient.Client, err error) { endPoint :...

View answer