Skip to content
Closed
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
2 changes: 1 addition & 1 deletion lib/constants/Addresses.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
AddressLength: 32,
MinterAddress: '000000000000000000000000000000000000000000000000000000000a550c18',
AssociationAddress: '000000000000000000000000000000000000000000000000000000000a550c18',
};
2 changes: 1 addition & 1 deletion lib/transaction/Transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class LibraTransaction {
maxGasAmount: new BigNumber(1000000),
},
`${Math.floor(new Date().getTime() / 1000) + 100}`,
new Uint8Array(Addresses.AddressLength),
new Uint8Array(Buffer.from(Addresses.AssociationAddress, 'hex')),
'-1',
);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/wallet/Accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class AccountAddress {
}

public static default(): AccountAddress {
return new AccountAddress(new Uint8Array(Buffer.from(Addresses.MinterAddress, 'hex')));
return new AccountAddress(new Uint8Array(Buffer.from(Addresses.AssociationAddress, 'hex')));
}
private readonly addressBytes: Uint8Array;

Expand Down
2 changes: 1 addition & 1 deletion test/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { LibraAdmissionControlStatus, LibraClient, LibraNetwork, LibraWallet } f
import './utils';

describe('LibraClient', () => {
xit('should query account state and transfer', async () => {
it('should query account state and transfer', async () => {
const client = new LibraClient({ network: LibraNetwork.Testnet });
const wallet = new LibraWallet({
mnemonic:
Expand Down