diff --git a/lib/constants/Addresses.ts b/lib/constants/Addresses.ts index 9b26fb6..0115da1 100644 --- a/lib/constants/Addresses.ts +++ b/lib/constants/Addresses.ts @@ -1,4 +1,4 @@ export default { AddressLength: 32, - MinterAddress: '000000000000000000000000000000000000000000000000000000000a550c18', + AssociationAddress: '000000000000000000000000000000000000000000000000000000000a550c18', }; diff --git a/lib/transaction/Transactions.ts b/lib/transaction/Transactions.ts index ca66373..9a3624b 100644 --- a/lib/transaction/Transactions.ts +++ b/lib/transaction/Transactions.ts @@ -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', ); } diff --git a/lib/wallet/Accounts.ts b/lib/wallet/Accounts.ts index fcb2231..eef37df 100644 --- a/lib/wallet/Accounts.ts +++ b/lib/wallet/Accounts.ts @@ -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; diff --git a/test/client.test.ts b/test/client.test.ts index 331aa5a..6ee9bb1 100644 --- a/test/client.test.ts +++ b/test/client.test.ts @@ -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: