Details
When tuple in proposal , it can't be create.
By the way, there is a bytes4 in tuple
Code to reproduce
functionInterface: {
name: "diamondCut",
inputs: [
{
type: "tuple[]",
name: "_diamondCut",
components: [
{ type: "bytes4[]", name: "functionSelectors" },
],
},
],
},
const tuple = [
[
["0xc744c486"],
],
]
functionInputs: [tuple], // Arguments to the function
then will get 400 error
message: 'data.functionInputs[0] should be string, data.functionInputs[0] should be boolean, data.functionInputs[0][0] should be string, data.functionInputs[0][0] should be boolean, data.functionInputs[0][0][0] should be string, data.functionInputs[0][0][0] should be boolean, data.functionInputs[0][0][0] should match exactly one schema in oneOf, data.functionInputs[0][0] should match exactly one schema in oneOf, data.functionInputs[0] should match exactly one schema in oneOf'