Browse Source

轻微修改params。

skyfffire 2 years ago
parent
commit
7d50b640ff
3 changed files with 8 additions and 6 deletions
  1. 3 2
      arbitrage/contract.go
  2. 4 4
      arbitrage/history.go
  3. 1 0
      arbitrage/params.go

+ 3 - 2
arbitrage/contract.go

@@ -10,7 +10,8 @@ type Contract struct {
 	abi     abi.ABI
 }
 
-func AbiJsonToAbi(abiJson string) abi.ABI {
-	result, _ := abi.JSON(strings.NewReader(abiJson))
+func AbiJsonToAbi(abiJsonContent string) abi.ABI {
+	result, _ := abi.JSON(strings.NewReader(abiJsonContent))
+
 	return result
 }

+ 4 - 4
arbitrage/history.go

@@ -93,10 +93,10 @@ func (h *HistoryArbitrage) run() {
 	h.setupWallets()
 
 	// 交易发送测试
-	h.sendTransaction(&ArbTx{
-		From: h.wallets[0].account.Address,
-		To:   h.wallets[0].account.Address,
-	})
+	//h.sendTransaction(&ArbTx{
+	//	From: h.wallets[0].account.Address,
+	//	To:   h.wallets[0].account.Address,
+	//})
 
 running:
 	for {

File diff suppressed because it is too large
+ 1 - 0
arbitrage/params.go


Some files were not shown because too many files changed in this diff