From 239bb9e8ac79953935c68cec6ae9160cdf689d14 Mon Sep 17 00:00:00 2001 From: Henry Hazan Date: Wed, 30 Mar 2022 03:37:17 +0300 Subject: [PATCH 1/2] add string arguments instructions --- src/seth/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/seth/README.md b/src/seth/README.md index d75a95958..bfb605b11 100644 --- a/src/seth/README.md +++ b/src/seth/README.md @@ -293,6 +293,13 @@ governance token using the ERC20 ABI: $ seth call $MKR_TOKEN "totalSupply()(uint)" 995238778286468792512963 +If you want to send a string as an argument, remember to put the quotes. + $ TOKEN=0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2 + $ seth call $TOKEN "getAddress(string)(address)" '"my_string"' + 0x7Bb0b08587b8a6B8945e09F1Baca426558B0f06a + + + If the ABI function has parameters, you can supply them as additional arguments; for example, to check the balance of the MakerDAO fund: From f42b40bb3b9f7ffc76b995a26d97b32588ed8c49 Mon Sep 17 00:00:00 2001 From: Henry Hz Date: Thu, 31 Mar 2022 21:34:13 +0300 Subject: [PATCH 2/2] Update src/seth/README.md Co-authored-by: dxo <6689924+d-xo@users.noreply.github.com> --- src/seth/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/seth/README.md b/src/seth/README.md index bfb605b11..edb42a1ca 100644 --- a/src/seth/README.md +++ b/src/seth/README.md @@ -293,7 +293,7 @@ governance token using the ERC20 ABI: $ seth call $MKR_TOKEN "totalSupply()(uint)" 995238778286468792512963 -If you want to send a string as an argument, remember to put the quotes. +If you want to send a string as an argument, you must surround the string in both single and double quotes. $ TOKEN=0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2 $ seth call $TOKEN "getAddress(string)(address)" '"my_string"' 0x7Bb0b08587b8a6B8945e09F1Baca426558B0f06a