added erc20-transfer

This commit is contained in:
Ricardo Guilherme Schmidt 2017-05-25 06:22:48 -03:00
parent 0d84b80456
commit bde4627b23
1 changed files with 12 additions and 0 deletions

View File

@ -30,3 +30,15 @@
confirmation-data (:data confirmation-event)] confirmation-data (:data confirmation-event)]
(when confirmation-data (when confirmation-data
(subs confirmation-data 66)))) (subs confirmation-data 66))))
(defn erc20-transfer
[contract token to amount]
(log/debug "multisig.erc20-transfer(contract, token, to, amount)" contract token to amount)
(eth/execute (eth/eth-account)
contract
"0xb61d27f6"
token
0
"0x60"
"0x44"
(eth/format-call-params "0xa9059cbb" to amount)))