mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-27 04:40: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)) {
|
||||
ref = contract.args;
|
||||
} else {
|
||||
let keys = Object.keys(contract.args);
|
||||
ref = keys.map((k) => contract.args[k]).filter((x) => !x);
|
||||
ref = Object.values(contract.args);
|
||||
}
|
||||
|
||||
for (let j = 0; j < ref.length; j++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user