(address common.Address)
| 279 | } |
| 280 | |
| 281 | func GetBalance(address common.Address) (*BalanceOfRsp, error) { |
| 282 | balances, height, err := GetContractBalance(0, []common.Address{utils.GasContractAddress}, address, true) |
| 283 | if err != nil { |
| 284 | return nil, fmt.Errorf("get balance error:%s", err) |
| 285 | } |
| 286 | return &BalanceOfRsp{ |
| 287 | Gas: fmt.Sprintf("%d", balances[0]), |
| 288 | Height: fmt.Sprintf("%d", height), |
| 289 | }, nil |
| 290 | } |
| 291 | |
| 292 | func GetAllowance(asset string, from, to common.Address) (string, error) { |
| 293 | var contractAddr common.Address |
nothing calls this directly
no test coverage detected