[go: up one dir, main page]

Tezos X/Kernel/Gateway: fix transfers to unallocated Tezos accounts

Closes L2-711.

Why

Because right now they fail.

Manually testing the MR

Use the gateway by targeting an unallocated Tezos account. Before: fails. After: succeeds.

make octez-evm-node && make -f etherlink.mk evm_kernel.wasm
./octez-evm-node run sandbox --with-runtime tezos --kernel evm_kernel.wasm --data-dir /tmp/sandbox --fund 0x2E2Ac8699AD02e710951ea0F56b892Ed36916Cd5
$ ./octez-client -E http://localhost:8545/tezlink get balance for tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx
0 ꜩ
$ cast send 0xff00000000000000000000000000000000000007 "transfer(string)" tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx --value 2ether --private-key <key> --rpc-url http://localhost:8545
[...]
status               1 (success)
[...]
$ ./octez-client -E http://localhost:8545/tezlink get balance for tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx
2000000000000 ꜩ
Edited by Nicolas Ayache

Merge request reports

Loading