MD
Size: a a a
MD
𓄋
𓄋
MD
𓄋
MD
N
it
it
AC
if err != nil {
t.Error(err)
}
var inputs []byte
for _, addr := range []string{
"0xdac17f958d2ee523a2206206994597c13d831ec7", // контракт tether
} {
input, err := erc20.Abi.Pack(
"balanceOf",
common.HexToAddress("адрес кошелька"),
)
if err != nil {
t.Error(err)
}
target := common.HexToAddress(addr)
input = append(target.Bytes(), input...)
inputs = append(inputs, inputs...)
}
mc := common.HexToAddress("0xeefba1e63905ef1d7acba5a8513c70307c1ce441")
msg := ethereum.CallMsg{To: &mc, Data: inputs}
result, err := client.CallContract(context.Background(), msg, nil)
t.Log(result)MD
AC
AC
𓄋
AC
MD
MD
AC
𓄋
𓄋