mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
Update usage of ExtVMFace
This commit is contained in:
parent
dc4bc0e9bf
commit
dbf8174fc6
1 changed files with 2 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ extern "C"
|
||||||
_env->subBalance(endowment);
|
_env->subBalance(endowment);
|
||||||
u256 gas; // TODO: Handle gas
|
u256 gas; // TODO: Handle gas
|
||||||
OnOpFunc onOp {}; // TODO: Handle that thing
|
OnOpFunc onOp {}; // TODO: Handle that thing
|
||||||
h256 address(_env->create(endowment, &gas, {_initBeg, _initSize}, onOp), h256::AlignRight);
|
h256 address(_env->create(endowment, gas, {_initBeg, _initSize}, onOp), h256::AlignRight);
|
||||||
*o_address = address;
|
*o_address = address;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -79,7 +79,7 @@ extern "C"
|
||||||
OnOpFunc onOp {}; // TODO: Handle that thing
|
OnOpFunc onOp {}; // TODO: Handle that thing
|
||||||
auto codeAddress = right160(*_codeAddress);
|
auto codeAddress = right160(*_codeAddress);
|
||||||
auto gas = llvm2eth(*io_gas);
|
auto gas = llvm2eth(*io_gas);
|
||||||
auto ret = _env->call(receiveAddress, value, inRef, &gas, outRef, onOp, {}, codeAddress);
|
auto ret = _env->call(receiveAddress, value, inRef, gas, outRef, onOp, {}, codeAddress);
|
||||||
*io_gas = eth2llvm(gas);
|
*io_gas = eth2llvm(gas);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue