@ -292,12 +292,12 @@ func (t *Transaction) getReceipt(ctx context.Context) (*types.Receipt, error) {
return receipts [ t . index ] , nil
}
func ( t * Transaction ) Status ( ctx context . Context ) ( * hexutil . Uint64 , error ) {
func ( t * Transaction ) Status ( ctx context . Context ) ( * Long , error ) {
receipt , err := t . getReceipt ( ctx )
if err != nil || receipt == nil {
return nil , err
}
ret := hexutil . Uint64 ( receipt . Status )
ret := Long ( receipt . Status )
return & ret , nil
}
@ -812,7 +812,7 @@ type CallData struct {
type CallResult struct {
data hexutil . Bytes // The return data from the call
gasUsed Long // The amount of gas used
status hexutil . Uint64 // The return status of the call - 0 for failure or 1 for success.
status Long // The return status of the call - 0 for failure or 1 for success.
}
func ( c * CallResult ) Data ( ) hexutil . Bytes {
@ -823,7 +823,7 @@ func (c *CallResult) GasUsed() Long {
return c . gasUsed
}
func ( c * CallResult ) Status ( ) hexutil . Uint64 {
func ( c * CallResult ) Status ( ) Long {
return c . status
}
@ -840,7 +840,7 @@ func (b *Block) Call(ctx context.Context, args struct {
if err != nil {
return nil , err
}
status := hexutil . Uint64 ( 1 )
status := Long ( 1 )
if result . Failed ( ) {
status = 0
}
@ -910,7 +910,7 @@ func (p *Pending) Call(ctx context.Context, args struct {
if err != nil {
return nil , err
}
status := hexutil . Uint64 ( 1 )
status := Long ( 1 )
if result . Failed ( ) {
status = 0
}