@solana/web3.js 1.48.0 → 1.49.0

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.iife.js CHANGED
@@ -21836,8 +21836,15 @@ var solanaWeb3 = (function (exports) {
21836
21836
  */
21837
21837
 
21838
21838
 
21839
- async getBlock(slot, opts) {
21840
- const args = this._buildArgsAtLeastConfirmed([slot], opts && opts.commitment);
21839
+ async getBlock(slot, rawConfig) {
21840
+ const {
21841
+ commitment,
21842
+ config
21843
+ } = extractCommitmentFromConfig(rawConfig);
21844
+
21845
+ const args = this._buildArgsAtLeastConfirmed([slot], commitment, undefined
21846
+ /* encoding */
21847
+ , config);
21841
21848
 
21842
21849
  const unsafeRes = await this._rpcRequest('getBlock', args);
21843
21850
  const res = create(unsafeRes, GetBlockRpcResult);
@@ -21923,8 +21930,15 @@ var solanaWeb3 = (function (exports) {
21923
21930
  */
21924
21931
 
21925
21932
 
21926
- async getTransaction(signature, opts) {
21927
- const args = this._buildArgsAtLeastConfirmed([signature], opts && opts.commitment);
21933
+ async getTransaction(signature, rawConfig) {
21934
+ const {
21935
+ commitment,
21936
+ config
21937
+ } = extractCommitmentFromConfig(rawConfig);
21938
+
21939
+ const args = this._buildArgsAtLeastConfirmed([signature], commitment, undefined
21940
+ /* encoding */
21941
+ , config);
21928
21942
 
21929
21943
  const unsafeRes = await this._rpcRequest('getTransaction', args);
21930
21944
  const res = create(unsafeRes, GetTransactionRpcResult);