feat: initialize Kurdistan SDK - independent fork of Polkadot SDK
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.8.24;
|
||||
|
||||
contract HostTransientMemory {
|
||||
function transientMemoryTest(uint64 slot, uint64 a) public returns (uint64) {
|
||||
uint256 value;
|
||||
assembly {
|
||||
tstore(slot, a)
|
||||
}
|
||||
value = 1;
|
||||
assembly {
|
||||
value := tload(slot)
|
||||
}
|
||||
return uint64(value - a);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user