Socket
Socket
Sign inDemoInstall

aion-web3-core-method

Package Overview
Dependencies
Maintainers
5
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aion-web3-core-method - npm Package Compare versions

Comparing version 1.1.6 to 1.2.5-beta.2

12

package.json
{
"name": "aion-web3-core-method",
"namespace": "aion",
"version": "1.1.6",
"version": "1.2.5-beta.2",
"description": "Creates the methods on the web3 modules. This is an internal package.",

@@ -10,9 +10,9 @@ "repository": "https://github.com/aionnetwork/aion_web3/tree/master/packages/web3-core-method",

"dependencies": {
"aion-web3-core-helpers": "1.1.6",
"aion-web3-core-promievent": "1.1.6",
"aion-web3-core-subscriptions": "1.1.6",
"aion-web3-utils": "1.1.6",
"aion-web3-core-helpers": "1.2.5-beta.2",
"aion-web3-core-promievent": "1.2.5-beta.2",
"aion-web3-core-subscriptions": "1.2.5-beta.2",
"aion-web3-utils": "1.2.5-beta.2",
"underscore": "1.8.3"
},
"gitHead": "6cdda35e1124fb489ee6809dcd068c85ed1dfa01"
"gitHead": "713ab735d0b43801b38aee7561f504564058a105"
}

@@ -42,4 +42,4 @@ /*

if(!options.call || !options.name) {
throw new Error('When creating a method you need to provide at least the "name" and "call" property.');
}
throw errors.MissingProperty('name" or "call');
};

@@ -263,3 +263,3 @@ this.name = options.name;

if (!receipt.blockHash) {
throw new Error('Receipt missing or blockHash null');
throw errors.MissingProperty('receipt or block hash');
}

@@ -304,4 +304,3 @@

}
utils._fireError(new Error('The transaction receipt didn\'t contain a contract address.'), defer.eventEmitter, defer.reject);
utils._fireError(errors.MissingProperty('contract address'), defer.eventEmitter, defer.reject);
return;

@@ -333,3 +332,3 @@ }

} else {
utils._fireError(new Error('The contract code couldn\'t be stored, please check your gas limit.'), defer.eventEmitter, defer.reject);
utils._fireError(errors.ContractCodeStorageError(), defer.eventEmitter, defer.reject);
}

@@ -365,8 +364,5 @@

if (receipt.status === false || receipt.status === '0x0') {
utils._fireError(new Error("Transaction has been reverted by the EVM:\n" + receiptJSON),
defer.eventEmitter, defer.reject);
utils._fireError(errors.RevertedTransaction(receiptJSON), defer.eventEmitter, defer.reject);
} else {
utils._fireError(
new Error("Transaction ran out of gas. Please provide more gas:\n" + receiptJSON),
defer.eventEmitter, defer.reject);
utils._fireError(errors.TransactionOutOfGas(receiptJSON), defer.eventEmitter, defer.reject);
}

@@ -392,3 +388,3 @@ }

promiseResolved = true;
utils._fireError(new Error('Transaction was not mined within' + POLLINGTIMEOUT + ' seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!'), defer.eventEmitter, defer.reject);
utils._fireError(errors.TransactionTimeout(POLLINGTIMEOUT, 'seconds'), defer.eventEmitter, defer.reject);
}

@@ -399,3 +395,3 @@ } else {

promiseResolved = true;
utils._fireError(new Error('Transaction was not mined within 50 blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!'), defer.eventEmitter, defer.reject);
utils._fireError(errors.TransactionTimeout(50, 'blocks'), defer.eventEmitter, defer.reject);
}

@@ -409,3 +405,3 @@ }

promiseResolved = true;
utils._fireError({message: 'Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.', data: err}, defer.eventEmitter, defer.reject);
utils._fireError(errors.FailedSubscription(err), defer.eventEmitter, defer.reject);
}

@@ -412,0 +408,0 @@ };

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc