Skip to content

Commit

Permalink
Update transaction.go
Browse files Browse the repository at this point in the history
  • Loading branch information
klim0v authored Dec 3, 2024
1 parent 275a96e commit dfb276d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transaction/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ func (o *object) Sign(key string, prKeys ...string) (Signed, error) {
if wallet.IsValidAddress(key) {
o.SignatureType = SignatureTypeMulti
} else if len(prKeys) != 0 {
panic(errors.New("invalid multy-signature address"))
return nil, errors.New("invalid multy-signature address")
}

switch o.SignatureType {
Expand Down

0 comments on commit dfb276d

Please sign in to comment.