Skip to content

Commit c9562ac

Browse files
authored
Merge pull request #932 from insurdao/master
2 parents c60f9ec + f42b40b commit c9562ac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/seth/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,13 @@ governance token using the ERC20 ABI:
293293
$ seth call $MKR_TOKEN "totalSupply()(uint)"
294294
995238778286468792512963
295295

296+
If you want to send a string as an argument, you must surround the string in both single and double quotes.
297+
$ TOKEN=0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2
298+
$ seth call $TOKEN "getAddress(string)(address)" '"my_string"'
299+
0x7Bb0b08587b8a6B8945e09F1Baca426558B0f06a
300+
301+
302+
296303
If the ABI function has parameters, you can supply them as additional
297304
arguments; for example, to check the balance of the MakerDAO fund:
298305

0 commit comments

Comments
 (0)