Closed thlorenz closed 2 years ago
The accounts method fromAccountAddress now supports a commitment parameter to be specified.
fromAccountAddress
commitment
Fixes: #84
static async fromAccountAddress( connection: web3.Connection, address: web3.PublicKey, commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig ): Promise<MasterEditionV1> { const accountInfo = await connection.getAccountInfo( address, commitmentOrConfig ) if (accountInfo == null) { throw new Error(`Unable to find MasterEditionV1 account at ${address}`) } return MasterEditionV1.fromAccountInfo(accountInfo, 0)[0] }
Summary
The accounts method
fromAccountAddress
now supports acommitment
parameter to be specified.Fixes: #84
Sample Code