skyfffire 2 жил өмнө
parent
commit
7d50b640ff

+ 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 {

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 1 - 0
arbitrage/params.go


Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно