Skip to content

Commit

Permalink
Merge pull request #705 from onflow/mpeter/fix-key-store-assignment
Browse files Browse the repository at this point in the history
Skip account keys with different publick key than the configured signer
  • Loading branch information
j1010001 authored Dec 13, 2024
2 parents d3c9db5 + 9fad9b9 commit 80d005f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ func (b *Bootstrap) StartAPIServer(ctx context.Context) error {
return err
}
for _, key := range account.Keys {
// Skip account keys that do not use the same Publick Key as the
// configured crypto.Signer object.
if !key.PublicKey.Equals(signer.PublicKey()) {
continue
}
accountKeys = append(accountKeys, &requester.AccountKey{
AccountKey: *key,
Address: b.config.COAAddress,
Expand Down

0 comments on commit 80d005f

Please sign in to comment.