Skip to content

Commit

Permalink
Merge pull request #667 from onflow/leo/update-run-cdc
Browse files Browse the repository at this point in the history
Run without coa account
  • Loading branch information
zhangchiqing authored Nov 20, 2024
2 parents 8d71209 + 3c7d3a4 commit 54ffc82
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
8 changes: 0 additions & 8 deletions services/requester/cadence/run.cdc
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import EVM

transaction(hexEncodedTx: String, coinbase: String) {
let coa: &EVM.CadenceOwnedAccount

prepare(signer: auth(Storage) &Account) {
self.coa = signer.storage.borrow<&EVM.CadenceOwnedAccount>(
from: /storage/evm
) ?? panic("Could not borrow reference to the COA!")
}

execute {
let txResult = EVM.run(
tx: hexEncodedTx.decodeHex(),
Expand Down
3 changes: 1 addition & 2 deletions services/requester/requester.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,7 @@ func (e *EVM) buildTransaction(ctx context.Context, script []byte, args ...caden
SetScript(script).
SetProposalKey(address, index, seqNum).
SetReferenceBlockID(latestBlock.ID).
SetPayer(address).
AddAuthorizer(address)
SetPayer(address)

for _, arg := range args {
if err := flowTx.AddArgument(arg); err != nil {
Expand Down

0 comments on commit 54ffc82

Please sign in to comment.