centrifuge / go-substrate-rpc-client

Substrate RPC client for go aka GSRPC
Apache License 2.0
203 stars 178 forks source link

ApiError("Could not convert parameter `tx` between node and runtime: Error decoding field Call :: Multisig.0") #134

Closed 0xrjman closed 3 years ago

0xrjman commented 3 years ago

It seems polka update the Multisignature structure?

0xrjman commented 3 years ago

I encountered this error when I called Multisig.as_multi of polkadot (substrate)

0xrjman commented 3 years ago
////BEGIN: Create a call of MultiSignTransfer
mulMethod := "Multisig.as_multi"

var threshold = uint16(2)
// parameters of multiSignature
Alice, err := types.NewAddressFromHexAccountID("0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d")
Bob, err := types.NewAddressFromHexAccountID("0x8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48")

var otherSignatories = []types.AccountID{Bob.AsAccountID, Alice.AsAccountID}
var maybeTimepoint = types.TimePoint{
    Height: 11516,
    Index: 1,
}

//var maybeTimepoint = types.TimePoint{}
//var maxWeight = types.NewWeight(220674000)
var maxWeight = types.NewWeight(220674000)
mc, err := types.NewCall(
    meta,
    mulMethod,
    threshold,
    otherSignatories,
    maybeTimepoint,
    c,
    false,
    maxWeight,
)
if err != nil {
    panic(nil)
}
vedhavyas commented 3 years ago

@RJman-self could try this with latest master and let me know if you ar still sing this issue ?

vedhavyas commented 3 years ago

closing this due to no response from OP. Please open this again if you have more info for us to reproduce the issue with latest release