From 5463ed99968bf71685a2a8ee9dbf8705912f00cb Mon Sep 17 00:00:00 2001 From: Erichin Date: Mon, 7 May 2018 17:32:51 +0900 Subject: [PATCH] mobile: add GetStatus Method for Receipt (#16598) --- mobile/types.go | 1 + 1 file changed, 1 insertion(+) 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} }