From bc3f892a4c55b2e27227ac9ca077791f716df6fc Mon Sep 17 00:00:00 2001 From: simlecode <69969590+simlecode@users.noreply.github.com> Date: Thu, 13 Apr 2023 15:01:45 +0800 Subject: [PATCH] fix: fix test --- testhelper/memwallet.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testhelper/memwallet.go b/testhelper/memwallet.go index 7b96435..6449b38 100644 --- a/testhelper/memwallet.go +++ b/testhelper/memwallet.go @@ -111,5 +111,6 @@ func (m *MemWallet) WalletSign(ctx context.Context, signer address.Address, toSi if !ok { return nil, fmt.Errorf("address %s not found", signer) } - return vcrypto.Sign(toSign, keyInfo.Key(), vcrypto.SigTypeSecp256k1) + + return vcrypto.Sign(toSign, keyInfo.Key(), sharedTypes.AddressProtocol2SignType(signer.Protocol())) }