mirror of
https://github.com/AthanorLabs/atomic-swap.git
synced 2026-01-09 22:28:04 -05:00
feat: implement swap relayer cmd package (#282)
This commit is contained in:
@@ -85,7 +85,7 @@ func CheckSwapFactoryContractCode(
|
||||
return forwarderAddress, nil
|
||||
}
|
||||
|
||||
err = checkForwarderContractCode(ctx, ec, forwarderAddress)
|
||||
err = CheckForwarderContractCode(ctx, ec, forwarderAddress)
|
||||
if err != nil {
|
||||
return ethcommon.Address{}, err
|
||||
}
|
||||
@@ -94,9 +94,9 @@ func CheckSwapFactoryContractCode(
|
||||
return forwarderAddress, nil
|
||||
}
|
||||
|
||||
// checkSwapFactoryForwarder checks that the trusted forwarder contract used by
|
||||
// CheckForwarderContractCode checks that the trusted forwarder contract used by
|
||||
// the given swap contract has the expected bytecode.
|
||||
func checkForwarderContractCode(
|
||||
func CheckForwarderContractCode(
|
||||
ctx context.Context,
|
||||
ec *ethclient.Client,
|
||||
contractAddr ethcommon.Address,
|
||||
|
||||
@@ -52,7 +52,7 @@ func TestCheckForwarderContractCode(t *testing.T) {
|
||||
ec, _ := tests.NewEthClient(t)
|
||||
pk := tests.GetMakerTestKey(t)
|
||||
trustedForwarder := deployForwarder(t, ec, pk)
|
||||
err := checkForwarderContractCode(context.Background(), ec, trustedForwarder)
|
||||
err := CheckForwarderContractCode(context.Background(), ec, trustedForwarder)
|
||||
require.NoError(t, err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user