修改一些配置
This commit is contained in:
parent
b4935e3e43
commit
b3cdea76c6
@ -117,8 +117,8 @@ export default class extends Vue {
|
||||
nonce,
|
||||
signature
|
||||
}
|
||||
const res: any = await buyBox(buyData)
|
||||
await this.bc.increaseAllowance(this.data.coinAddress!, price)
|
||||
const res: any = await buyBox(buyData)
|
||||
const orderId = res.order_id
|
||||
localStorage.setItem('tmp_presale_order_id', orderId)
|
||||
EventBus.$emit(PRESALE_ORDER_GET, orderId)
|
||||
|
@ -207,7 +207,8 @@ export class BlockChain {
|
||||
|
||||
public async increaseAllowance(address: string, price: string) {
|
||||
const coinInstance: any = await this.getCoinInstance(address)
|
||||
await coinInstance.methods.increaseAllowance(MALL_ADDRESS, price).send({ gas: 1000000 })
|
||||
const res = await coinInstance.methods.increaseAllowance(MALL_ADDRESS, price).send({ gas: 1000000 })
|
||||
console.log('increaseAllowance: ', res)
|
||||
}
|
||||
|
||||
public parsePrice(price: number, decimals: number) {
|
||||
|
@ -287,4 +287,4 @@ export const ERC20ABI = [
|
||||
}
|
||||
]
|
||||
|
||||
export const MALL_ADDRESS = '0x31F29C9A3D0c1c13C825475aebF0d964b5B47c45'
|
||||
export const MALL_ADDRESS = '0x40ffB0642e0B4494c47b6ad781862C0BDB3256A8'
|
||||
|
Loading…
x
Reference in New Issue
Block a user