From: Paladz Date: Mon, 23 Jul 2018 01:55:18 +0000 (+0800) Subject: fix unit test for sm op (#1156) X-Git-Tag: v1.0.5~7^2 X-Git-Url: http://git.osdn.net/view?p=bytom%2Fbytom.git;a=commitdiff_plain;h=9762783662b70315d2a511e835f20b7820d25f62 fix unit test for sm op (#1156) --- diff --git a/protocol/vm/crypto_test.go b/protocol/vm/crypto_test.go index 3477872d..6b18acdd 100644 --- a/protocol/vm/crypto_test.go +++ b/protocol/vm/crypto_test.go @@ -85,6 +85,9 @@ func TestCheckSig(t *testing.T) { } func TestCryptoOps(t *testing.T) { + OP_SM3 := Op(0xb0) + ops[OP_SM3] = opInfo{OP_SM3, "SM3", opSm3} + type testStruct struct { op Op startVM *virtualMachine