DeploySEALEDEVM
●◇▫@○○╲~$█#$◆▪%%%%▒●╳?╲?▫$░%▓@░~▓○▓▫!▫╳!&□■╱%@@░◆◆#░●^■░■$█#▪■╲█
Transaction ID
Execution Fee
0.00001599 FLOWTransaction Summary
DeployContract deployment
Contract deployment
Script Arguments
0nameString
BridgedAccountContract
1codeString
import EVM from 0xe467b9dd11fa00df
import FlowToken from 0x1654653399040a61
access(all) contract BridgedAccountContract {
access(self) var acc: @EVM.CadenceOwnedAccount
access(all) event ContractDeployed(address: String)
access(all)
fun address() : EVM.EVMAddress {
return self.acc.address()
}
access(all)
fun call(
to: EVM.EVMAddress,
data: [UInt8],
gasLimit: UInt64,
value: EVM.Balance
): EVM.Result {
let result = self.acc.call(
to: to,
data: data,
gasLimit: gasLimit,
value: value
)
if result.deployedContract != nil {
emit ContractDeployed(address: result.deployedContract!.toString())
}
return result
}
access(all)
fun deposit(from: @FlowToken.Vault) {
self.acc.deposit(from: <-from)
}
init() {
self.acc <- EVM.createCadenceOwnedAccount()
}
}
Cadence Script
1transaction(name: String, code: String) {
2 prepare(signer: auth(AddContract) &Account) {
3 signer.contracts.add(name: name, code: code.utf8)
4 }
5}