fix: use bpf-loader-deprecated explicitly (#11818)

This commit is contained in:
Jack May
2020-08-25 09:05:33 -07:00
committed by GitHub
parent 4593c3a172
commit 2395e57f45
6 changed files with 36 additions and 37 deletions

View File

@@ -1754,11 +1754,7 @@ export class Connection {
publicKey: PublicKey,
commitment: ?Commitment,
): Promise<RpcResponseAndContext<AccountInfo<Buffer> | null>> {
const args = this._buildArgs(
[publicKey.toBase58()],
commitment,
'base64',
);
const args = this._buildArgs([publicKey.toBase58()], commitment, 'base64');
const unsafeRes = await this._rpcRequest('getAccountInfo', args);
const res = GetAccountInfoAndContextRpcResult(unsafeRes);
if (res.error) {
@@ -1868,11 +1864,7 @@ export class Connection {
programId: PublicKey,
commitment: ?Commitment,
): Promise<Array<{pubkey: PublicKey, account: AccountInfo<Buffer>}>> {
const args = this._buildArgs(
[programId.toBase58()],
commitment,
'base64',
);
const args = this._buildArgs([programId.toBase58()], commitment, 'base64');
const unsafeRes = await this._rpcRequest('getProgramAccounts', args);
const res = GetProgramAccountsRpcResult(unsafeRes);
if (res.error) {