Skip to content

Commit

Permalink
address more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dssei committed Apr 15, 2024
1 parent df04758 commit 84a0646
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/sei-cosmwasm/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ pub enum SeiMsg {
},
/// Calls EVM contract deployed at `to` address with the given `data`.
/// Calls EVM contract as if the contract's caller called it directly.
/// Please note that the CW contract has to be in allow list in order to execute delegate call.
/// Please note that the CW contract has to be in
/// [allow list](https://github.com/sei-protocol/sei-chain/blob/seiv2/x/evm/types/params.go#L142)
/// in order to execute delegate call.
/// The EVM (Solidity) contract `msg.sender` in this case will be the callers address.
DelegateCallEvm {
/// The address of the EVM contract to call
to: String,
/// Base64 encoded data to pass to the contract
data: String, // base64 encoded
/// Base64 encoded binary data to pass to the contract
data: String,
},
/// Calls EVM contract deployed at `to` address with specified `value` and `data`.
/// The from address is the contract address of the contract executing the call.
Expand All @@ -60,8 +62,8 @@ pub enum SeiMsg {
value: Uint128,
/// The address of the EVM contract to call
to: String,
/// Base64 encoded data to pass to the contract
data: String, // base64 encoded
/// Base64 encoded binary data to pass to the contract
data: String,
},
}

Expand Down

0 comments on commit 84a0646

Please sign in to comment.