Skip to content

Commit

Permalink
Replace all senderx instances with sender00 (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
EnoF authored Dec 17, 2024
2 parents 0dc97b8 + d392f81 commit e1e7ac2
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 71 deletions.
2 changes: 1 addition & 1 deletion spirekey/e2e/page-objects/pages/example-transfer.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class ExampleTransferPage {
}

async setReceiver() {
await this.receiverInput.fill('senderx');
await this.receiverInput.fill('sender00');
}
async setAmount(amount: string) {
await this.amountInput.fill(amount);
Expand Down
2 changes: 1 addition & 1 deletion spirekey/e2e/page-objects/pages/transfer.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class TransferPage {
}

async setReceiver() {
await this.receiverInput.fill('senderx');
await this.receiverInput.fill('sender00');
}
async setAmount(amount: string) {
await this.amountInput.fill(amount);
Expand Down
21 changes: 3 additions & 18 deletions spirekey/pact/deploy/deploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,24 +67,9 @@
"c:kZqdOJ6B_584lKXJgB8srIVivESgjqLneAA6JYJwrf8",
"100.0"
],
["coin.GAS"]
]
},
{
"profile": "default",
"code": "(coin.transfer-create \"sender00\" \"senderx\" (read-keyset 'ks) 1000000.0)",
"data": {
"ks": {
"keys": [
"368820f80c324bbc7c2b0610688a7da43e39f91d118732671cd9c7500ff43cca"
],
"pred": "keys-all"
}
},
"sender": "sender00",
"caps": [
["coin.TRANSFER", "sender00", "senderx", "1000000.0"],
["coin.GAS"]
[
"coin.GAS"
]
]
}
]
Expand Down
29 changes: 5 additions & 24 deletions spirekey/pact/deploy/hosted-init.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@
"w:2CwogBdPy-ebjrXkSIZ5ehdalJv8iQX0VwJMwRtys0s:keys-any",
"100000000.0"
],
["coin.GAS"]
[
"coin.GAS"
]
]
},

{
"profile": "default",
"codeFile": "./pact/deploy/webauthn-predeploy.pact",
Expand Down Expand Up @@ -133,29 +134,9 @@
"u:n_eef68e581f767dd66c4d4c39ed922be944ede505.gas-station.enforce-guard-any:dorjIaX8IGJZtfgZzYRkXV0DE9mEPxPvyuwdmML5eTk",
"100.0"
],
["coin.GAS"]
]
},
{
"profile": "default",
"code": "(coin.transfer-create \"w:2CwogBdPy-ebjrXkSIZ5ehdalJv8iQX0VwJMwRtys0s:keys-any\" \"senderx\" (read-keyset 'ks) 1000000.0)",
"data": {
"ks": {
"keys": [
"368820f80c324bbc7c2b0610688a7da43e39f91d118732671cd9c7500ff43cca"
],
"pred": "keys-all"
}
},
"sender": "w:2CwogBdPy-ebjrXkSIZ5ehdalJv8iQX0VwJMwRtys0s:keys-any",
"caps": [
[
"coin.TRANSFER",
"w:2CwogBdPy-ebjrXkSIZ5ehdalJv8iQX0VwJMwRtys0s:keys-any",
"senderx",
"1000000.0"
],
["coin.GAS"]
"coin.GAS"
]
]
}
]
Expand Down
29 changes: 5 additions & 24 deletions spirekey/pact/deploy/local-init.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@
"w:2CwogBdPy-ebjrXkSIZ5ehdalJv8iQX0VwJMwRtys0s:keys-any",
"100000000.0"
],
["coin.GAS"]
[
"coin.GAS"
]
]
},

{
"profile": "default",
"codeFile": "./pact/deploy/webauthn-predeploy.pact",
Expand Down Expand Up @@ -122,29 +123,9 @@
"u:n_eef68e581f767dd66c4d4c39ed922be944ede505.gas-station.enforce-guard-any:dorjIaX8IGJZtfgZzYRkXV0DE9mEPxPvyuwdmML5eTk",
"100.0"
],
["coin.GAS"]
]
},
{
"profile": "default",
"code": "(coin.transfer-create \"w:2CwogBdPy-ebjrXkSIZ5ehdalJv8iQX0VwJMwRtys0s:keys-any\" \"senderx\" (read-keyset 'ks) 1000000.0)",
"data": {
"ks": {
"keys": [
"368820f80c324bbc7c2b0610688a7da43e39f91d118732671cd9c7500ff43cca"
],
"pred": "keys-all"
}
},
"sender": "w:2CwogBdPy-ebjrXkSIZ5ehdalJv8iQX0VwJMwRtys0s:keys-any",
"caps": [
[
"coin.TRANSFER",
"w:2CwogBdPy-ebjrXkSIZ5ehdalJv8iQX0VwJMwRtys0s:keys-any",
"senderx",
"1000000.0"
],
["coin.GAS"]
"coin.GAS"
]
]
}
]
Expand Down
6 changes: 3 additions & 3 deletions spirekey/src/utils/fund.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const fundLocally = (accountName: string) =>
execution(
`
(coin.transfer
"senderx"
"sender00"
"${accountName}"
100.0
)
Expand All @@ -54,11 +54,11 @@ const fundLocally = (accountName: string) =>
gasLimit: 10000,
gasPrice: 0.0000001,
ttl: 60000,
senderAccount: 'senderx',
senderAccount: 'sender00',
}),
addSigner(genesisPubKey, (withCap) => [
withCap('coin.GAS'),
withCap('coin.TRANSFER', 'senderx', accountName, 100),
withCap('coin.TRANSFER', 'sender00', accountName, 100),
]),
setNetworkId(getDevnetNetworkId()),
);
Expand Down

0 comments on commit e1e7ac2

Please sign in to comment.