Skip to content

Instantly share code, notes, and snippets.

@wanderer
Forked from obscuren/vs.js
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wanderer/7e5c4640992258266502 to your computer and use it in GitHub Desktop.
Save wanderer/7e5c4640992258266502 to your computer and use it in GitHub Desktop.
eth.getKey(function(key) {
eth.getStorageAt("someaddr", "somelocation", function(address) {
eth.compile("thiscode", function(code) {
eth.transact({to: address, from: key, gas: 10000, gasPrice: eth.gasPrice, data:[code]}, function(tx){
console.log(tx)
})
})
})
})
// VS
eth.transact({
to: eth.storageAt("a", "b"),
from: eth.key,
gas: 1000,
gasPrice: eth.gasPrice,
data: eth.compile("code"),
}).
then(function(tx) {
console.log(tx);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment