diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-05 17:56:25 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-05 17:56:25 +0800 |
commit | 7c91159449c528daa099aec5a3744aa8a6b5a826 (patch) | |
tree | e25dc33bdd0d833aceb99fea06c93181a0e59c57 /ethpub/pub.go | |
parent | 1f6df0cd522842095c5ca723d2e11fc6b97b8b6a (diff) | |
download | go-tangerine-7c91159449c528daa099aec5a3744aa8a6b5a826.tar go-tangerine-7c91159449c528daa099aec5a3744aa8a6b5a826.tar.gz go-tangerine-7c91159449c528daa099aec5a3744aa8a6b5a826.tar.bz2 go-tangerine-7c91159449c528daa099aec5a3744aa8a6b5a826.tar.lz go-tangerine-7c91159449c528daa099aec5a3744aa8a6b5a826.tar.xz go-tangerine-7c91159449c528daa099aec5a3744aa8a6b5a826.tar.zst go-tangerine-7c91159449c528daa099aec5a3744aa8a6b5a826.zip |
Added different storage notification object
Diffstat (limited to 'ethpub/pub.go')
-rw-r--r-- | ethpub/pub.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ethpub/pub.go b/ethpub/pub.go index c6f177124..5f23018f7 100644 --- a/ethpub/pub.go +++ b/ethpub/pub.go @@ -47,6 +47,18 @@ func (lib *PEthereum) GetStateObject(address string) *PStateObject { return NewPStateObject(nil) } +func (lib *PEthereum) GetStorage(address, storageAddress string) string { + return lib.GetStateObject(address).GetStorage(storageAddress) +} + +func (lib *PEthereum) GetTxCount(address string) int { + return lib.GetStateObject(address).Nonce() +} + +func (lib *PEthereum) IsContract(address string) bool { + return lib.GetStateObject(address).IsContract() +} + func (lib *PEthereum) Transact(key, recipient, valueStr, gasStr, gasPriceStr, dataStr string) (*PReceipt, error) { return lib.createTx(key, recipient, valueStr, gasStr, gasPriceStr, dataStr, "") } |