Fix array fields.

This commit is contained in:
muzam1l
2022-07-15 14:49:54 +05:30
parent bfaa6be17d
commit d05180d148
2 changed files with 1 additions and 2 deletions

View File

@@ -24,7 +24,6 @@ export const sendTransaction = async (account: IAccount, txOptions: TransactionO
Fee, // TODO auto-fillable default
...opts
};
const { logPrefix = '' } = options || {}
try {
const signedAccount = derive.familySeed(account.secret);

View File

@@ -118,7 +118,7 @@ export const prepareTransaction = (data: any) => {
// handle type: `json`
if (_value && typeof _value === "object" && _value.$type === "json") {
if (typeof _value.$value === "object") {
options[field] = { ..._value.$value } as any;
options[field] = _value.$value;
} else {
try {
options[field] = JSON.parse(_value.$value);