Skip to content

Commit 75e1f23

Browse files
authored
adapt example for breaking change of v21.12 (#215)
1 parent 563a625 commit 75e1f23

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## 5.0.0 (WIP)
5+
## 5.0.0 (2021-12-17)
66

77
### 🆕 Features
88

examples/gasprice-retry/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const start = async () => {
1919
params: {
2020
from: '[ETH_ACCOUNT]',
2121
to: '0x6009608a02a7a15fd6689d6dad560c44e9ab61ff',
22-
value: '100000000',
22+
value: '0x5F5E100',
2323
gasPricePolicy: {
2424
priority: Priority.Low,
2525
retryPolicy: {

examples/register-faucet/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export const start = async () => {
1010
name: 'faucet',
1111
chainRule: '[CHAIN_UUID]',
1212
creditorAccount: '[FUNDED_ACCOUNT]',
13-
amount: '60000000000000000',
14-
maxBalance: '100000000000000000',
13+
amount: '0xD529AE9E860000',
14+
maxBalance: '0x100000000000000000',
1515
cooldown: '10s'
1616
})
1717

examples/send-private-tx/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const start = async () => {
1414
params: {
1515
contractName: 'SimpleToken',
1616
from: '[ETH_ACCOUNT]',
17-
protocol: ProtocolType.Orion,
17+
protocol: ProtocolType.EEA,
1818
privateFor: ['k2zXEin4Ip/qBGlRkJejnGWdP9cjkK+DAvKNW31L2C8='], // Orion default node 2 public key in development mode
1919
privateFrom: 'Ko2bVqD+nNlNYL5EE7y3IdOnviftjiizpjRt+HTuFBs=' // Orion default node 1 public key in development mode
2020
}

examples/send-raw-tx/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const start = async () => {
2020
nonce: 0,
2121
gasLimit: 21000,
2222
to: '0xdbb881a51cd4023e4400cef3ef73046743f08da3',
23-
value: utils.parseEther('1')
23+
value: utils.parseEther('1').toHexString()
2424
})
2525

2626
const res = await client.sendRawTransaction(

examples/send-transfer-with-priority/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const start = async () => {
1414
params: {
1515
from: '[ETH_ACCOUNT]',
1616
to: '0x6009608a02a7a15fd6689d6dad560c44e9ab61ff',
17-
value: '100000000',
17+
value: '0x5F5E100',
1818
gasPricePolicy: {
1919
priority: Priority.VeryHigh
2020
}

examples/send-transfer/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const start = async () => {
1414
params: {
1515
from: '[ETH_ACCOUNT]',
1616
to: '0x6009608a02a7a15fd6689d6dad560c44e9ab61ff',
17-
value: '100000000'
17+
value: '0x5F5E100'
1818
}
1919
},
2020
'ExampleTransfer'

src/client/OrchestrateClient.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ describe('OrchestrateClient', () => {
254254
to: '0xContractAddr',
255255
methodSignature: 'transfer(address, unit256)',
256256
args: ['0xToAddr', '1000'],
257-
protocol: types.ProtocolType.Orion,
257+
protocol: types.ProtocolType.EEA,
258258
privateFor: ['0xpubkey1', '0xpubkey2'],
259259
privateFrom: '0xpubkey'
260260
}

src/client/types/ProtocolType.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export enum ProtocolType {
22
Tessera = 'Tessera',
3-
Orion = 'Orion'
3+
EEA = 'EEA'
44
}

0 commit comments

Comments
 (0)