@elrondnetwork/erdjs
Advanced tools
Comparing version 10.2.7 to 11.0.0
@@ -62,2 +62,3 @@ "use strict"; | ||
return new transaction_1.Transaction({ | ||
sender: this.innerTransaction.getSender(), | ||
receiver: this.innerTransaction.getSender(), | ||
@@ -64,0 +65,0 @@ value: 0, |
@@ -107,2 +107,3 @@ "use strict"; | ||
receiver: address_1.Address.Zero(), | ||
sender: address_1.Address.Zero(), | ||
value: value, | ||
@@ -130,2 +131,3 @@ gasLimit: gasLimit, | ||
let transaction = new transaction_1.Transaction({ | ||
sender: address_1.Address.Zero(), | ||
receiver: this.getAddress(), | ||
@@ -152,2 +154,3 @@ value: value, | ||
let transaction = new transaction_1.Transaction({ | ||
sender: address_1.Address.Zero(), | ||
receiver: receiver ? receiver : this.getAddress(), | ||
@@ -154,0 +157,0 @@ value: value, |
@@ -66,3 +66,3 @@ /// <reference types="node" /> | ||
receiver: IAddress; | ||
sender?: IAddress; | ||
sender: IAddress; | ||
gasPrice?: IGasPrice; | ||
@@ -69,0 +69,0 @@ gasLimit: IGasLimit; |
@@ -45,3 +45,3 @@ "use strict"; | ||
this.value = value || 0; | ||
this.sender = sender || address_1.Address.Zero(); | ||
this.sender = sender; | ||
this.receiver = receiver; | ||
@@ -159,5 +159,6 @@ this.gasPrice = gasPrice || constants_1.TRANSACTION_MIN_GAS_PRICE; | ||
receiver: address_1.Address.fromString(plainObjectTransaction.receiver), | ||
sender: address_1.Address.fromString(plainObjectTransaction.sender), | ||
gasPrice: Number(plainObjectTransaction.gasPrice), | ||
gasLimit: Number(plainObjectTransaction.gasLimit), | ||
data: new transactionPayload_1.TransactionPayload(atob(plainObjectTransaction.data || "")), | ||
data: new transactionPayload_1.TransactionPayload(Buffer.from(plainObjectTransaction.data || "", "base64")), | ||
chainID: String(plainObjectTransaction.chainID), | ||
@@ -164,0 +165,0 @@ version: new networkParams_1.TransactionVersion(plainObjectTransaction.version), |
@@ -6,2 +6,3 @@ "use strict"; | ||
const transaction_1 = require("./transaction"); | ||
const address_1 = require("./address"); | ||
class TransactionFactory { | ||
@@ -19,3 +20,3 @@ constructor(gasEstimator) { | ||
receiver: args.receiver, | ||
sender: args.sender, | ||
sender: args.sender || address_1.Address.Zero(), | ||
gasPrice: args.gasPrice, | ||
@@ -36,3 +37,3 @@ gasLimit: args.gasLimit || estimatedGasLimit, | ||
receiver: args.receiver, | ||
sender: args.sender, | ||
sender: args.sender || address_1.Address.Zero(), | ||
gasPrice: args.gasPrice, | ||
@@ -39,0 +40,0 @@ gasLimit: args.gasLimit || estimatedGasLimit, |
{ | ||
"name": "@elrondnetwork/erdjs", | ||
"version": "10.2.7", | ||
"version": "11.0.0", | ||
"description": "Smart Contracts interaction framework", | ||
@@ -27,5 +27,5 @@ "main": "out/index.js", | ||
"author": "ElrondNetwork", | ||
"license": "GPL-3.0-or-later", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@elrondnetwork/transaction-decoder": "0.1.0", | ||
"@elrondnetwork/transaction-decoder": "1.0.0", | ||
"bech32": "1.1.4", | ||
@@ -40,4 +40,4 @@ "bignumber.js": "9.0.1", | ||
"devDependencies": { | ||
"@elrondnetwork/erdjs-network-providers": "0.1.4", | ||
"@elrondnetwork/erdjs-walletcore": "1.0.0", | ||
"@elrondnetwork/erdjs-network-providers": "1.0.0", | ||
"@elrondnetwork/erdjs-walletcore": "2.0.0", | ||
"@types/assert": "1.4.6", | ||
@@ -44,0 +44,0 @@ "@types/chai": "4.2.11", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
0
100
10356
601672
+ Added@elrondnetwork/transaction-decoder@1.0.0(transitive)
- Removed@elrondnetwork/transaction-decoder@0.1.0(transitive)