Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions modules/sdk-coin-celo/test/resources/celo.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('An address initialization', () => {
txJson.gasLimit.should.equal('12100000');
txJson.gasPrice.should.equal('1000000000');
should.equal(txJson.nonce, 2);
should.equal(txJson.chainId, 44787);
should.equal(txJson.chainId, 11142220);
should.equal(txJson.from, testData.KEYPAIR_PRV.getAddress());
should.equal(tx.toBroadcastFormat(), testData.TX_ADDRESS_INIT);
should.equal(txJson.deployedAddress, '0x016e4eee27f3f355bbb78d0e5eb813c4761822c9');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ describe('Send transaction', function () {
.key(key);
const tx = await txBuilder.build();
const txJson = tx.toJson();
should.equal(txJson.v, '0x015e09');
should.equal(txJson.v, '0x015408bb');
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('Celo Transaction builder for wallet initialization', () => {
txJson.gasLimit.should.equal('12100000');
txJson.gasPrice.should.equal('1000000000');
should.equal(txJson.nonce, 2);
should.equal(txJson.chainId, 44787);
should.equal(txJson.chainId, 11142220);
should.equal(tx.toBroadcastFormat(), testData.TX_BROADCAST);
should.equal(txJson.from, testData.KEYPAIR_PRV.getAddress());
});
Expand All @@ -47,7 +47,7 @@ describe('Celo Transaction builder for wallet initialization', () => {
txJson.gasLimit.should.equal('12100000');
txJson.gasPrice.should.equal('1000000000');
should.equal(txJson.nonce, 0);
should.equal(txJson.chainId, 44787);
should.equal(txJson.chainId, 11142220);
should.equal(txJson.from, testData.KEYPAIR_PRV.getAddress());
});

Expand All @@ -60,9 +60,9 @@ describe('Celo Transaction builder for wallet initialization', () => {
txJson.gasLimit.should.equal('12100000');
txJson.gasPrice.should.equal('1000000000');
should.equal(txJson.nonce, 0);
should.equal(txJson.chainId, 44787);
should.equal(txJson.chainId, 11142220);
// Celo has disable final v and it has chain id as v value.
should.equal(txJson.v, 0x015e09);
should.equal(txJson.v, 0x015408bb);
});

it('an init transaction from an unsigned serialized one', async () => {
Expand All @@ -75,7 +75,7 @@ describe('Celo Transaction builder for wallet initialization', () => {
newTxBuilder.from(serialized);
newTxBuilder.sign({ key: testData.KEYPAIR_PRV.getKeys().prv });
const signedTx = await newTxBuilder.build();
should.equal(signedTx.toJson().chainId, 44787);
should.equal(signedTx.toJson().chainId, 11142220);
should.equal(signedTx.toBroadcastFormat(), testData.TX_BROADCAST);
});

Expand All @@ -90,7 +90,7 @@ describe('Celo Transaction builder for wallet initialization', () => {
const newTxBuilder = getBuilder('tcelo') as TransactionBuilder;
newTxBuilder.from(testData.TEST_WALLET_CREATION);
const newTx = await newTxBuilder.build();
should.equal(newTx.toJson().id, '0x3b6cdb03cc92aae90ae067ec71e27f17ff879e9c6499ab682212bab367628a9c');
should.equal(newTx.toJson().id, '0xbfb1de15a69c20c1467fa9708a8ac71e15e3a162618f865067b541b2db03f894');
});
});

Expand Down
2 changes: 1 addition & 1 deletion modules/statics/src/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class CoinMap {
80094: 'bera',
80069: 'tbera',
42220: 'celo',
44787: 'tcelo',
11142220: 'tcelo',
2222: 'kava',
2221: 'tkava',
43114: 'avax',
Expand Down
6 changes: 3 additions & 3 deletions modules/statics/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,9 @@ class Celo extends Mainnet implements EthereumNetwork {
class CeloTestnet extends Testnet implements EthereumNetwork {
name = 'CeloTestnet';
family = CoinFamily.CELO;
explorerUrl = 'https://alfajores-blockscout.celo-testnet.org/tx/';
accountExplorerUrl = 'https://alfajores-blockscout.celo-testnet.org/address/';
chainId = 44787;
explorerUrl = 'https://sepolia.celoscan.io/tx/';
accountExplorerUrl = 'https://sepolia.celoscan.io/address/';
chainId = 11142220;
nativeCoinOperationHashPrefix = 'CELO';
tokenOperationHashPrefix = 'CELO-ERC20';
}
Expand Down