Skip to content

Commit

Permalink
Use the same posting/active authority during blocks generation for py…
Browse files Browse the repository at this point in the history
…thon tests
  • Loading branch information
Mariusz-Trela committed Nov 20, 2024
1 parent 0037935 commit ad44ce5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ def generate_authority(wallet: tt.OldWallet, authority_type: Literal["open_sign"
case "single_sign":
wallet.api.import_key(tt.PrivateKey("account", secret="owner"))
wallet.api.import_key(tt.PrivateKey("account", secret="active"))
wallet.api.import_key(tt.PrivateKey("account", secret="posting"))

return {
"owner": {
Expand All @@ -287,7 +286,7 @@ def generate_authority(wallet: tt.OldWallet, authority_type: Literal["open_sign"
"posting": {
"weight_threshold": 1,
"account_auths": [],
"key_auths": [[tt.PublicKey("account", secret="posting"), 1]],
"key_auths": [[tt.PublicKey("account", secret="active"), 1]],
},
"memo": tt.PublicKey("account", secret="memo"),
}
Expand Down

0 comments on commit ad44ce5

Please sign in to comment.