You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version: v0.3.3: Atlantis
Description: If _data.slot := slot is commented out, the error does not occur.
contractC {
struct S {
uint a;
uint b;
}
mapping(uint=> S) public mappingAccess;
function data() internalviewreturns (S storage_data) {
_data = mappingAccess[20];
bytes32 slot =keccak256(abi.encode(uint(1), uint(0)));
assembly {
// _data.slot := slot
}
}
function get() publicviewreturns (uint) {
returndata().a;
}
}
Reproduction: I set up a Solang compilation and execution environment to test the program.
solang/target/debug/vmRunNoPara test.sol C get
The execution error is as follows:
Contract name: C
function new for tVdNkXJPLk3bGwfGamfSaArTJj3buT5TUUZmUK6WDd6
input: 872ccdc6190148bc
running bpf with calldata:872ccdc6190148bc
program: tVdNkXJPLk3bGwfGamfSaArTJj3buT5TUUZmUK6WDd6
static: length:3f0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
offset:410 prev:10 next:10 length:0 allocated:0
thread 'main' panicked at src/tests/solana.rs:1778:52:
account 'systemProgram' is missing
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
function_call_with_account causes error
The text was updated successfully, but these errors were encountered:
Version: v0.3.3: Atlantis
Description: If _data.slot := slot is commented out, the error does not occur.
Reproduction: I set up a Solang compilation and execution environment to test the program.
The execution error is as follows:
The text was updated successfully, but these errors were encountered: