ddapptools
ddapptools copied to clipboard
Can't forward RPC URL
trafficstars
export ETH_RPC_URL="https://mainnet.infura.io/v3/..."
./ddapp.sh seth call 0x6b175474e89094c44da98b954eedeac495271d0f "balanceOf(address)(uint)" 0x40ec5b33f54e0e8a33a975908c5ba1c14e5bbbdf
/nix/store/kxj6cblcsd1qcbbxlmbswwrn89zcmgd6-bash-4.4-p23/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
curl: (3) bad range specification in URL position 1835:
https://mainnet.infura.io/v3/...
SESSION=...
SHELL=/bin/zsh
TMPDIR=/var/folders/km/...
If enter a bash shell in container it works:
./ddapp.sh bash
root@de1ddcf8f454:/dapptools# export ETH_RPC_URL="https://mainnet.infura.io/v3/..."
root@de1ddcf8f454:/dapptools# seth call 0x6b175474e89094c44da98b954eedeac495271d0f "balanceOf(address)(uint)" 0x40ec5b33f54e0e8a33a975908c5ba1c14e5bbbdf
/nix/store/kxj6cblcsd1qcbbxlmbswwrn89zcmgd6-bash-4.4-p23/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
294119505230795042555348963
I have a feeling that has to do with how docker parses the string. It reads the ENV variable but for some reason, it's not serialized correctly.
Can you share the URL form at least?