From aa8ee1a203af78846965ed250a5bc9b5728cace7 Mon Sep 17 00:00:00 2001 From: rongyi Date: Wed, 19 Jun 2024 16:21:39 +0800 Subject: [PATCH] Fix githubaction, goodbye onchain.com (#1441) --- p2pserver/connect_controller/connect_controller_test.go | 2 +- smartcontract/service/native/testsuite/ont_suite_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/p2pserver/connect_controller/connect_controller_test.go b/p2pserver/connect_controller/connect_controller_test.go index 3be8febf8b..f433b03344 100644 --- a/p2pserver/connect_controller/connect_controller_test.go +++ b/p2pserver/connect_controller/connect_controller_test.go @@ -233,7 +233,7 @@ func TestCheckReserveWithDomain(t *testing.T) { a := assert.New(t) // this domain only have one A record, so we can assure two lookup below return the same IP // other domain may fail the test sometimes - dname := "www.onchain.com" + dname := "ont.io" gips, err := net.LookupHost(dname) a.Nil(err, "fail to get domain record") diff --git a/smartcontract/service/native/testsuite/ont_suite_test.go b/smartcontract/service/native/testsuite/ont_suite_test.go index 9526e1ca8d..7406e1ac6c 100644 --- a/smartcontract/service/native/testsuite/ont_suite_test.go +++ b/smartcontract/service/native/testsuite/ont_suite_test.go @@ -172,7 +172,7 @@ func ontTransferV2(native *native.NativeService, from, to common.Address, value } func ontTransferFrom(native *native.NativeService, sender, from, to common.Address, value uint64) error { - native.Tx.SignedAddr = append(native.Tx.SignedAddr, from) + native.Tx.SignedAddr = append(native.Tx.SignedAddr, sender) state := &ont.TransferFrom{Sender: sender, TransferState: ont.TransferState{From: from, To: to, Value: value}} native.Input = common.SerializeToBytes(state) _, err := ont.OntTransferFrom(native) @@ -180,7 +180,7 @@ func ontTransferFrom(native *native.NativeService, sender, from, to common.Addre } func ontTransferFromV2(native *native.NativeService, sender, from, to common.Address, value uint64) error { - native.Tx.SignedAddr = append(native.Tx.SignedAddr, from) + native.Tx.SignedAddr = append(native.Tx.SignedAddr, sender) state := &ont.TransferFromStateV2{Sender: sender, TransferStateV2: ont.TransferStateV2{From: from, To: to, Value: states.NativeTokenBalance{Balance: bigint.New(value)}}} native.Input = common.SerializeToBytes(state) _, err := ont.OntTransferFromV2(native)