(number *big.Int)
| 690 | } |
| 691 | |
| 692 | func toBlockNumArg(number *big.Int) string { |
| 693 | if number == nil { |
| 694 | return "latest" |
| 695 | } |
| 696 | if number.Sign() >= 0 { |
| 697 | return hexutil.EncodeBig(number) |
| 698 | } |
| 699 | // It's negative. |
| 700 | if number.IsInt64() { |
| 701 | return rpc.BlockNumber(number.Int64()).String() |
| 702 | } |
| 703 | // It's negative and large, which is invalid. |
| 704 | return fmt.Sprintf("<invalid %d>", number) |
| 705 | } |
| 706 | |
| 707 | func toCallArg(msg ethereum.CallMsg) interface{} { |
| 708 | arg := map[string]interface{}{ |
no test coverage detected