@solana/web3.js 1.63.0 → 1.63.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.browser.cjs.js +2 -2
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +2 -2
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +2 -2
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.esm.js +2 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +2 -2
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +1 -1
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +2 -2
- package/lib/index.native.js.map +1 -1
- package/package.json +1 -1
- package/src/message/v0.ts +12 -4
package/lib/index.browser.esm.js
CHANGED
|
@@ -973,13 +973,13 @@ class MessageV0 {
|
|
|
973
973
|
getAccountKeys(args) {
|
|
974
974
|
let accountKeysFromLookups;
|
|
975
975
|
|
|
976
|
-
if (args && 'accountKeysFromLookups' in args) {
|
|
976
|
+
if (args && 'accountKeysFromLookups' in args && args.accountKeysFromLookups) {
|
|
977
977
|
if (this.numAccountKeysFromLookups != args.accountKeysFromLookups.writable.length + args.accountKeysFromLookups.readonly.length) {
|
|
978
978
|
throw new Error('Failed to get account keys because of a mismatch in the number of account keys from lookups');
|
|
979
979
|
}
|
|
980
980
|
|
|
981
981
|
accountKeysFromLookups = args.accountKeysFromLookups;
|
|
982
|
-
} else if (args && 'addressLookupTableAccounts' in args) {
|
|
982
|
+
} else if (args && 'addressLookupTableAccounts' in args && args.addressLookupTableAccounts) {
|
|
983
983
|
accountKeysFromLookups = this.resolveAddressTableLookups(args.addressLookupTableAccounts);
|
|
984
984
|
} else if (this.addressTableLookups.length > 0) {
|
|
985
985
|
throw new Error('Failed to get account keys because address table lookups were not resolved');
|