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

Goal: Add check for signer passed in the case of logic sig rekeyed account #3773

Merged
merged 4 commits into from
Mar 18, 2022
Merged
Changes from 2 commits
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
9 changes: 8 additions & 1 deletion cmd/goal/clerk.go
Original file line number Diff line number Diff line change
Expand Up @@ -787,9 +787,16 @@ var signCmd = &cobra.Command{

for _, group := range groupsOrder {
txnGroup := []transactions.SignedTxn{}
for _, txn := range txnGroups[group] {
for idx, txn := range txnGroups[group] {
if lsig.Logic != nil {
txn.Lsig = lsig
if signerAddress != "" {
addr, err := basics.UnmarshalChecksumAddress(signerAddress)
if err != nil {
reportErrorf("Signer invalid txn[%d]: %v", idx, err)
}
txn.AuthAddr = addr
}
}
txnGroup = append(txnGroup, *txn)
}
Expand Down