Skip to content

Commit

Permalink
ping pong interactor - change wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
BiancaIalangi committed Oct 24, 2024
1 parent 8adb1fa commit c22d9fc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/examples/ping-pong-egld/interactor/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Pem files are used for interactions, but shouldn't be committed
*.pem
# *.pem
*.json

# Temporary storage of deployed contract address, so we can preserve the context between executions.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-----BEGIN PRIVATE KEY for erd1r86as0572rkv05lvz8gvavnmdrjjt7y7u60v37aw9567p0yuvmhspcrkvh-----
MWUwZWNlOGFlNjk5OTA1ZDk2NzA3Nzk3MzhjMGRiOWM5YjQzNTNkMDVjYjFjNTM1
NzdmMmE0ZWMzYzgxN2VmYjE5ZjVkODNlOWU1MGVjYzdkM2VjMTFkMGNlYjI3YjY4
ZTUyNWY4OWVlNjllYzhmYmFlMmQzNWUwYmM5YzY2ZWY=
-----END PRIVATE KEY for erd1r86as0572rkv05lvz8gvavnmdrjjt7y7u60v37aw9567p0yuvmhspcrkvh-----
8 changes: 6 additions & 2 deletions contracts/examples/ping-pong-egld/interactor/src/interact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,12 @@ impl PingPongEgldInteract {
.with_tracer(INTERACTOR_SCENARIO_TRACE_PATH)
.await;

let ping_pong_owner_address = interactor.register_wallet(test_wallets::eve()).await;
let wallet_address = interactor.register_wallet(test_wallets::mallory()).await;
let ping_pong_owner_address = interactor
.register_wallet(Wallet::from_pem_file("ping-pong-owner.pem").unwrap())
.await;
let wallet_address = interactor
.register_wallet(Wallet::from_pem_file("wallet.pem").unwrap())
.await;

// generate blocks until ESDTSystemSCAddress is enabled
interactor.generate_blocks_until_epoch(1).await.unwrap();
Expand Down
5 changes: 5 additions & 0 deletions contracts/examples/ping-pong-egld/interactor/wallet.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-----BEGIN PRIVATE KEY for erd18r620tsqvyqmjgu23cdd8r33rauht978weehakscxdjm9g92g5zsw8sjh3-----
MmYzYmU5M2ZmZDBmN2FiNDA1ZjU3NDExOTYwMmQxYzgwNWFkY2FhNmI1NGNhNGU2
ZmQxMzAxMmMyMTMzNjk2YjM4ZjRhN2FlMDA2MTAxYjkyMzhhOGUxYWQzOGUzMTFm
Nzk3NTk3Yzc3NjczN2VkYTE4MzM2NWIyYTBhYTQ1MDU=
-----END PRIVATE KEY for erd18r620tsqvyqmjgu23cdd8r33rauht978weehakscxdjm9g92g5zsw8sjh3-----

0 comments on commit c22d9fc

Please sign in to comment.