weixin_39617502
weixin_39617502
2020-12-25 22:14

estimate gas for deploy contract is zero 1024

work on #1024

example:

grpcurl -v -plaintext -d '{"execution": {"amount": "0", "contract": "","data":"YIBgQFI0gBVhABBXYACA/VtQYQEjYAECYAKBYAAZFpBVUDNz//////////////////////////8WYAECYAOBYAAZFpBVUGADVGACVBdgBIFgABkWkFVQYQKugGEAZWAAOWAA8wBggGBAUmAENhBhAHhXYAA1fAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkARj/////xaAYwzA4fsUYQB9V4BjKPNxqhRhALBXgGNrHXUrFGEA31eAY9S4OZIUYQESV4Bj2uqFxRRhAUVXgGPrb9lqFGEBiFdbYACA/Vs0gBVhAIlXYACA/VtQYQCSYQG7VltgQFGAgmAAGRZgABkWgVJgIAGRUFBgQFGAkQOQ81s0gBVhALxXYACA/VtQYQDFYQHBVltgQFGAghUVFRWBUmAgAZFQUGBAUYCRA5DzWzSAFWEA61dgAID9W1BhAPRhAddWW2BAUYCCYAAZFmAAGRaBUmAgAZFQUGBAUYCRA5DzWzSAFWEBHldgAID9W1BhASdhAd1WW2BAUYCCYAAZFmAAGRaBUmAgAZFQUGBAUYCRA5DzWzSAFWEBUVdgAID9W1BhAYZgBIA2A4EBkICANXP//////////////////////////xaQYCABkJKRkFBQUGEB41ZbAFs0gBVhAZRXYACA/VtQYQGdYQJ8VltgQFGAgmAAGRZgABkWgVJgIAGRUFBgQFGAkQOQ81tgA1SBVltgAGAEVGAAGRZgAVRgABkWFJBQkFZbYAJUgVZbYARUgVZbM3P//////////////////////////xZgAQKBc///////////////////////////FmABAhdgAYFgABkWkFVQYAFgAICDc///////////////////////////FnP//////////////////////////xaBUmAgAZCBUmAgAWAAIGAAYQEACoFUgWD/AhkWkIMVFQIXkFVQUFZbYAFUgVYAoWVienpyMFggibX5lHbWQrZqITwSzRmCB7LoE7scrzvXXiK+U16/XRMAKQ=="},"callerAddress":"io1juvx5g063eu4ts832nukp4vgcwk2gnc5cu9ayd"}' 127.0.0.1:14014 iotexapi.APIService.EstimateActionGasConsumption

该提问来源于开源项目:iotexproject/iotex-core

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

相关推荐