Skip to content

Commit

Permalink
Fix transaction for COA resource creation
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Peter committed Nov 26, 2024
1 parent 01bb8e7 commit a779b41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions services/requester/cadence/run.cdc
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import EVM

transaction(hexEncodedTx: String, coinbase: String) {
prepare(signer: &Account) {}

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

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

0 comments on commit a779b41

Please sign in to comment.