mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-30 01:17:57 +00:00
@@ -742,12 +742,21 @@ where
|
||||
.map(|_| None)
|
||||
}
|
||||
InstructionName::TLOAD => {
|
||||
let _arguments = self.pop_arguments_llvm(context);
|
||||
anyhow::bail!("The `TLOAD` instruction is not supported until zkVM v1.5.0");
|
||||
let arguments = self.pop_arguments_llvm(context);
|
||||
revive_llvm_context::polkavm_evm_storage::transient_load(
|
||||
context,
|
||||
arguments[0].into_int_value(),
|
||||
)
|
||||
.map(Some)
|
||||
}
|
||||
InstructionName::TSTORE => {
|
||||
let _arguments = self.pop_arguments_llvm(context);
|
||||
anyhow::bail!("The `TSTORE` instruction is not supported until zkVM v1.5.0");
|
||||
let arguments = self.pop_arguments_llvm(context);
|
||||
revive_llvm_context::polkavm_evm_storage::transient_store(
|
||||
context,
|
||||
arguments[0].into_int_value(),
|
||||
arguments[1].into_int_value(),
|
||||
)
|
||||
.map(|_| None)
|
||||
}
|
||||
InstructionName::PUSHIMMUTABLE => {
|
||||
let key = self
|
||||
|
||||
@@ -485,18 +485,21 @@ impl FunctionCall {
|
||||
.map(|_| None)
|
||||
}
|
||||
Name::TLoad => {
|
||||
let _arguments = self.pop_arguments_llvm::<D, 1>(context)?;
|
||||
anyhow::bail!(
|
||||
"{} The `TLOAD` instruction is not supported until zkVM v1.5.0",
|
||||
location
|
||||
);
|
||||
let arguments = self.pop_arguments_llvm::<D, 1>(context)?;
|
||||
revive_llvm_context::polkavm_evm_storage::transient_load(
|
||||
context,
|
||||
arguments[0].into_int_value(),
|
||||
)
|
||||
.map(Some)
|
||||
}
|
||||
Name::TStore => {
|
||||
let _arguments = self.pop_arguments_llvm::<D, 2>(context)?;
|
||||
anyhow::bail!(
|
||||
"{} The `TSTORE` instruction is not supported until zkVM v1.5.0",
|
||||
location
|
||||
);
|
||||
let arguments = self.pop_arguments_llvm::<D, 2>(context)?;
|
||||
revive_llvm_context::polkavm_evm_storage::transient_store(
|
||||
context,
|
||||
arguments[0].into_int_value(),
|
||||
arguments[1].into_int_value(),
|
||||
)
|
||||
.map(|_| None)
|
||||
}
|
||||
Name::LoadImmutable => todo!(),
|
||||
Name::SetImmutable => {
|
||||
|
||||
Reference in New Issue
Block a user