From ff58d84f81d584646ca3f8fe00493cdcec8239ed Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 15 Aug 2019 18:49:42 -0400 Subject: add smart contract example --- coreth.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'coreth.go') diff --git a/coreth.go b/coreth.go index 84a6b59..a164452 100644 --- a/coreth.go +++ b/coreth.go @@ -106,6 +106,10 @@ func (self *ETHChain) SetHead(hash common.Hash) error { return self.backend.BlockChain().FastSyncCommitHead(hash) } +func (self *ETHChain) GetReceiptsByHash(hash common.Hash) types.Receipts { + return self.backend.BlockChain().GetReceiptsByHash(hash) +} + type Key struct { Address common.Address PrivateKey *ecdsa.PrivateKey -- cgit v1.2.3