A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged

0

I think this is impossible, because the price is determined by traders on exchanges.


1

No no no. The accepted answer above is incorrect, and the fact that you've accepted it means that not many users will even read your question (let alone try to answer it). The integer value of 1000000000000000000 is indeed larger than Number.MAX_SAFE_INTEGER, and you should therefore use "1000000000000000000" or "1e18". But that's not what the error ...


0

There are lots of different ways you could manage writing this data to ethereum. Depending on how big your JSON files are / how many json files you'll need to publish, this is a potential solution. Deploy the contract below and transact with the writeJsonFile to emit JSONFileEvents from this smart contract, these events will be stored in the blockchain and ...


1

After testing in Remix everything works just fine. I deployed the code, I called depo with value and tested all the functions. Because I'm not sure if you can see contract's balance in some way directly in Remix I added an extra function to return the current contract balance and called that function after every withdraw function call to verify the results. ...


0

Token transfers are not actually transfers of value at all. Only Ether transfers explicitly transfer (and contain) value. So a transaction transfers Ether if and only if its value field is non-zero. Detecting a token transfer is much more tricky. A token transfer is simply calling a function in a token contract. So first you need to know whether the ...


1

Receipts are basically for proving logs and events, rather than details of a transaction. In https://blog.ethereum.org/2015/11/15/merkling-in-ethereum Vitalik Buterin gave an example of using receipts, as well as other examples that can be answered with Merkle proofs: Has this transaction been included in a particular block? Tell me all instances of an ...


0

Before line require(bid2 > highestBid2); you have an extra }. Just remove that and it at least compiles. If you had correct indentation you'd notice this problem immediately. I suggest you use some editor which fixes indentation for you.


0

use 100000 gwei the metamask man said and it solved my issue


1

No your account is safe or, better, if you still have the private key of the account you are interested in, your money and your account are safe. You are definitively able to recover them using some other wallet. I use CIPHER on iOS and it is ok. On the other side, simply add a new account in metamask giving the private key when asked for it. Nothing more. ...


1

You can get your accounts back by clicking "Create Account" (once per each account). The accounts are there, however they are not shown until you add them. If the accounts that show up do not match what you are expecting, then you are using an incorrect seed.


Top 50 recent answers are included