mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-27 12:50:43 +00:00
fix(contracts_manager): fix object contract arguments
This commit is contained in:
parent
7a5035ec49
commit
6b61c8ada9
@ -421,8 +421,7 @@ class ContractsManager {
|
|||||||
if (Array.isArray(contract.args)) {
|
if (Array.isArray(contract.args)) {
|
||||||
ref = contract.args;
|
ref = contract.args;
|
||||||
} else {
|
} else {
|
||||||
let keys = Object.keys(contract.args);
|
ref = Object.values(contract.args);
|
||||||
ref = keys.map((k) => contract.args[k]).filter((x) => !x);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let j = 0; j < ref.length; j++) {
|
for (let j = 0; j < ref.length; j++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user