aboutsummaryrefslogtreecommitdiffstats
path: root/mobile
diff options
context:
space:
mode:
authorErichin <erichinbato@gmail.com>2018-05-07 16:32:51 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-05-07 16:32:51 +0800
commit5463ed99968bf71685a2a8ee9dbf8705912f00cb (patch)
treeafcd9f68e0516ea31e9fc96165c12aa09638e042 /mobile
parentd7be5c6619bc1794f79c72a97de5efa81e00bf12 (diff)
downloadgo-tangerine-5463ed99968bf71685a2a8ee9dbf8705912f00cb.tar.gz
go-tangerine-5463ed99968bf71685a2a8ee9dbf8705912f00cb.tar.zst
go-tangerine-5463ed99968bf71685a2a8ee9dbf8705912f00cb.zip
mobile: add GetStatus Method for Receipt (#16598)
Diffstat (limited to 'mobile')
-rw-r--r--mobile/types.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile/types.go b/mobile/types.go
index 196c7839f..f32b4918f 100644
--- a/mobile/types.go
+++ b/mobile/types.go
@@ -329,6 +329,7 @@ func (r *Receipt) EncodeJSON() (string, error) {
return string(data), err
}
+func (r *Receipt) GetStatus() int { return int(r.receipt.Status) }
func (r *Receipt) GetPostState() []byte { return r.receipt.PostState }
func (r *Receipt) GetCumulativeGasUsed() int64 { return int64(r.receipt.CumulativeGasUsed) }
func (r *Receipt) GetBloom() *Bloom { return &Bloom{r.receipt.Bloom} }