good morning!!!!

Skip to content
Snippets Groups Projects
Commit 71defc11 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Fixed closure

parent 53eb59ed
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@
<script type="text/javascript">
var jefcoinAddr = "3dff537f51350239abc95c76a5864aa605259e7d"
var jefcoinAddr = "136060151ebf11cd82456de1ab9406cc2a762b36"
var mAddr = ""
function createTransaction() {
......@@ -27,9 +27,8 @@ function init() {
eth.set({width: 500});
eth.getKey(function(sec) {
mAddr = sec;
eth.getSecretToAddress(sec, function(addr) {
mAddr = addr;
eth.getStorageAt(jefcoinAddr, addr, function(storage) {
document.querySelector("#current-amount").innerHTML = storage;
});
......
......@@ -151,7 +151,7 @@ func (ui *UiLib) DebugTx(recipient, valueStr, gasStr, gasPriceStr, data string)
keyPair := ethutil.Config.Db.GetKeys()[0]
account := ui.eth.StateManager().GetAddrState(keyPair.Address()).Object
c := ethchain.MakeContract(callerTx, state)
callerClosure := ethchain.NewClosure(account, c, c.Script(), state, ethutil.Big(gasStr), ethutil.Big(gasPriceStr), ethutil.Big(valueStr))
callerClosure := ethchain.NewClosure(account, c, c.Script(), state, ethutil.Big(gasStr), ethutil.Big(gasPriceStr))
block := ui.eth.BlockChain().CurrentBlock
vm := ethchain.NewVm(state, ui.eth.StateManager(), ethchain.RuntimeVars{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment