MCPcopy Create free account
hub / github.com/DNAProject/DNA / TestMultiPubKeysAddress

Function TestMultiPubKeysAddress

http/test/func_test.go:90–101  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

88 assert.Nil(t, err)
89}
90func TestMultiPubKeysAddress(t *testing.T) {
91 pubkey, _ := common.HexToBytes("120203a4e50edc1e59979442b83f327030a56bffd08c2de3e0a404cefb4ed2cc04ca3e")
92 pk, err := keypair.DeserializePublicKey(pubkey)
93 assert.Nil(t, err)
94
95 pubkey2, _ := common.HexToBytes("12020225c98cc5f82506fb9d01bad15a7be3da29c97a279bb6b55da1a3177483ab149b")
96 pk2, err := keypair.DeserializePublicKey(pubkey2)
97 assert.Nil(t, err)
98
99 _, err = types.AddressFromMultiPubKeys([]keypair.PublicKey{pk, pk2}, 1)
100 assert.Nil(t, err)
101}
102
103func BuildSmartContractParamInter(builder *neovm.ParamsBuilder, smartContractParams []interface{}) error {
104 for i := len(smartContractParams) - 1; i >= 0; i-- {

Callers

nothing calls this directly

Calls 2

HexToBytesFunction · 0.92
AddressFromMultiPubKeysFunction · 0.92

Tested by

no test coverage detected