Skip to content

Commit

Permalink
Use AuthAddr if set for logic sig transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
nullun committed Nov 25, 2024
1 parent f244a5c commit 3ef09ec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/goal/clerk.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,13 @@ var sendCmd = &cobra.Command{
Args: programArgs,
},
}
if signerAddress != "" {
var authAddr, err = basics.UnmarshalChecksumAddress(signerAddress)
if err != nil {
reportErrorf("Signer invalid (%s): %v", signerAddress, err)
}
stx.AuthAddr = basics.Address(authAddr)
}
} else {
signTx := sign || (outFilename == "")
var authAddr basics.Address
Expand Down

0 comments on commit 3ef09ec

Please sign in to comment.