Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd: Improve logicsig with signer support for goal clerk send #6180

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use AuthAddr if set for logic sig transactions
  • Loading branch information
nullun committed Nov 25, 2024
commit 3ef09ec1b175be9d435db98dbfa06a406f9e4667
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