Skip to content

Commit 54ffc82

Browse files
authored
Merge pull request #667 from onflow/leo/update-run-cdc
Run without coa account
2 parents 8d71209 + 3c7d3a4 commit 54ffc82

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

services/requester/cadence/run.cdc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
import EVM
22

33
transaction(hexEncodedTx: String, coinbase: String) {
4-
let coa: &EVM.CadenceOwnedAccount
5-
6-
prepare(signer: auth(Storage) &Account) {
7-
self.coa = signer.storage.borrow<&EVM.CadenceOwnedAccount>(
8-
from: /storage/evm
9-
) ?? panic("Could not borrow reference to the COA!")
10-
}
11-
124
execute {
135
let txResult = EVM.run(
146
tx: hexEncodedTx.decodeHex(),

services/requester/requester.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,7 @@ func (e *EVM) buildTransaction(ctx context.Context, script []byte, args ...caden
315315
SetScript(script).
316316
SetProposalKey(address, index, seqNum).
317317
SetReferenceBlockID(latestBlock.ID).
318-
SetPayer(address).
319-
AddAuthorizer(address)
318+
SetPayer(address)
320319

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

0 commit comments

Comments
 (0)