소스 검색

Removed method name

obscuren 11 년 전
부모
커밋
16bd88c10a
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ethereal/ui/gui.go
  2. 4 0
      ethereum/repl.go

+ 1 - 1
ethereal/ui/gui.go

@@ -234,7 +234,7 @@ func (gui *Gui) update() {
 
 				gui.setWalletValue(object.Amount, nil)
 
-				state.SetStateObject(object)
+				state.UpdateStateObject(object)
 			}
 		}
 	}

+ 4 - 0
ethereum/repl.go

@@ -53,6 +53,10 @@ type JSEthereum struct {
 	vm *otto.Otto
 }
 
+func (self *JSEthereum) GetBlock(hash string) otto.Value {
+	return self.toVal(self.PEthereum.GetBlock(hash))
+}
+
 func (self *JSEthereum) GetKey() otto.Value {
 	return self.toVal(self.PEthereum.GetKey())
 }