OSDN Git Service

change the address info according to the api
authorZhiting Lin <zlin035@uottawa.ca>
Wed, 28 Mar 2018 11:08:46 +0000 (19:08 +0800)
committerZhiting Lin <zlin035@uottawa.ca>
Wed, 28 Mar 2018 11:08:46 +0000 (19:08 +0800)
src/features/accounts/components/AccountShow.jsx

index 883dd6a..730dcab 100644 (file)
@@ -19,7 +19,7 @@ class AccountShow extends BaseShow {
 
   createReceiver() {
     this.props.createReceiver({
-      account_info:this.props.item.alias
+      account_alias:this.props.item.alias
     }).then(({data: receiver}) => this.props.showModal(<div>
       <p>Copy this one-time use address to use in a transaction:</p>
       <CopyableBlock value={JSON.stringify({
@@ -32,7 +32,7 @@ class AccountShow extends BaseShow {
   createAddress() {
     const lang = this.props.lang
     this.props.createAddress({
-      account_info:this.props.item.alias
+      account_alias:this.props.item.alias
     }).then(({data}) => {
       this.props.showModal(<div>
         <p>{ lang === 'zh' ? '拷贝这个一次性receiver以用于交易中:' : 'Copy this one-time use receiver to use in a transaction:' }</p>