Closed hanabi1224 closed 3 months ago
Part of https://github.com/ChainSafe/forest/issues/4424
2) 'Message` deserialization has required fields that are optional in Lotus and default to 0 there
Changes introduced in this pull request:
MessageLotusJson
Manual test result
Payload:
{"jsonrpc":"2.0","id":0,"method":"Filecoin.GasEstimateGasLimit","params": [ { "From": "f15ydyu3d65gznpp2qxwpkjsgz4waubeunn6upvla", "To": "f15ydyu3d65gznpp2qxwpkjsgz4waubeunn6upvla", "Value": "1000000000000000000" }, [ { "/": "bafy2bzacedejh3rhguvzgnt6wergwcuuecgw42kx2uxmqdwpuyzvdwjwla4wq" }, { "/": "bafy2bzacebp67qmhv6okvhgdtjhh4v5ewpw7ar77dfbhhmsqx2vwnkrv3is56" }, { "/": "bafy2bzaceciiv7y65ony3eg4h2ah5kpaiymjxmjbje62h7i77kivwufunlx7m" } ] ] }
lotus response
{"id":0,"jsonrpc":"2.0","result":747363}
forest response
{"jsonrpc":"2.0","id":0,"method":"Filecoin.GasEstimateGasLimit","params": [ { "From": "f15ydyu3d65gznpp2qxwpkjsgz4waubeunn6upvla", "To": "f15ydyu3d65gznpp2qxwpkjsgz4waubeunn6upvla" }, [ { "/": "bafy2bzacedejh3rhguvzgnt6wergwcuuecgw42kx2uxmqdwpuyzvdwjwla4wq" }, { "/": "bafy2bzacebp67qmhv6okvhgdtjhh4v5ewpw7ar77dfbhhmsqx2vwnkrv3is56" }, { "/": "bafy2bzaceciiv7y65ony3eg4h2ah5kpaiymjxmjbje62h7i77kivwufunlx7m" } ] ] }
{"id":0,"jsonrpc":"2.0","result":729663}
Closes
Summary of changes
Part of https://github.com/ChainSafe/forest/issues/4424
Changes introduced in this pull request:
MessageLotusJson
optional for JSON serialization to match lotus behaviorManual test result
Payload:
lotus response
forest response
Payload:
lotus response
forest response
Reference issue to close (if applicable)
Closes
Other information and links
Change checklist