Skip to content

Commit

Permalink
Fix githubaction, goodbye onchain.com (#1441)
Browse files Browse the repository at this point in the history
  • Loading branch information
rongyi authored Jun 19, 2024
1 parent 31b82d6 commit aa8ee1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion p2pserver/connect_controller/connect_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions smartcontract/service/native/testsuite/ont_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,15 @@ 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)
return err
}

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)
Expand Down

0 comments on commit aa8ee1a

Please sign in to comment.