Skip to content

Commit

Permalink
fix chainId
Browse files Browse the repository at this point in the history
  • Loading branch information
chen-yijiang committed Oct 7, 2023
1 parent 174671e commit e3ea6c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iotex-desktop-wallet",
"version": "1.1.0",
"version": "1.2.0",
"description": "IoTeX Desktop Wallet",
"main": "dist/app/main.js",
"scripts": {
Expand Down
14 changes: 9 additions & 5 deletions src/shared/wallet/sign-and-send-envelop-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,21 @@ class SignAndSendEnvelopModalInner extends Component<Props, State> {
} else {
signed = await antenna.iotx.signer.signOnly(this.envelop);
}
const [res, err] = await getAntenna().iotx.sendAction({
action: signed.action()
}).then(res => [res, null]).catch(err => [null, err]);

const [res, err] = await antenna.iotx.client
.sendAction({
action: signed.action()
})
.then(res => [res, null])
.catch(err => [null, err]);

if (err) {
message.error(err.message);
return
return;
}

if (!res) {
return
return;
}

const { actionHash } = res;
Expand Down

0 comments on commit e3ea6c6

Please sign in to comment.