<
 
 
 
 
×
>
hide You are viewing an archived web page, collected at the request of Ethereum Foundation using Archive-It. This page was captured on 23:53:53 Jun 28, 2021 , and is part of the Community collection. The information on this web page may be out of date. See All versions of this archived page. Loading media information

Extracting information from a contract

I have 3 questions that I can't seem to find answers to:

How does one extract stored memory values from a contract and display it in Alethzero?

Are stored values in the contract privy to the contract creator?

Does extracting a stored value require gas?

Comments

  • JasperJasper Eindhoven, the NetherlandsMember Posts: 514 ✭✭✭
    You can no longer extract contract storage from another contract. However, you can call the contract and get data in the return value. This gives people some ability to ask for payment for data, though other contracts can memoize outputs and just pay whatever fee once, although there might be countermeasures.(and responses to avoid them)

    Clients can look at whatever, of course here are the PoC 5 JS bindings. In particular storageAt(_a, _x). (but you're probably interested in those bindings in general)

    Peeking at storage could be a bit cumbersome/more bug prone if there are different variants of the same thing using slightly different locations, so i think . No fakeMessage yet though. Here is an issue about it, i will try add some such thing, though go-ethereum has a console; ethereum -js, and i want to give that a shot to try test a simple contract first.
Sign In or Register to comment.