Skip to content

Commit

Permalink
[AptosFramework] fix the error code in epilogue
Browse files Browse the repository at this point in the history
The epilogue error conversion requires the exact code for not enough gas to charge properly.

Closes: aptos-labs#822
  • Loading branch information
zekun000 authored and aptos-bot committed May 6, 2022
1 parent b7e2085 commit e57be6b
Show file tree
Hide file tree
Showing 17 changed files with 97 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2898,7 +2898,7 @@
}
},
{
"bytecode": "0xa11ceb0b050000000c01001602160c0322d60104f8010e058602a80107ae03fb0708a90b2006c90be8020ab10e260cd70ecf060da615040faa1502000100020003000400050006000700080009000a000b00010c00000c080006340400000d000100000e000200000f0002000010030400001101050000120005000013060100001400070000150004000016000800001709010000180a010000190b0100001a0a0100001b020100001c030100001d0c0100001e0d0100001f0e0100062c0f0100032d080800032e080800012f110401000a301308010005310f14000a3215010100073301010003350808000636171800083718010005380f00000339080800093a010700033b0808000a3c1a110100073d010800023e011200043f04040006140007000640000800034108080009421d07001600171219121700170422002204010500020c0a0202060c0a02010a02010c050c03030303010101030a060c050a020a020a020a020a020a020a0201070c030a0203030302090c030a020a050a0a0203030302080c030a02030303020a02030c0301050c030a02030201060c020a020c01060900010201060a090001060502070a09000a09000607080005080203030302060c03010802050303050608000a0202060a09000304030306080005020708000501060a020747656e65736973074163636f756e740342435307436861696e4964064572726f72730448617368065369676e65720854657374436f696e0954696d657374616d700e5472616e73616374696f6e4665651b5472616e73616374696f6e5075626c697368696e674f7074696f6e06566563746f7218436861696e53706563696669634163636f756e74496e666f0e6372656174655f6163636f756e74176372656174655f6163636f756e745f696e7465726e616c186372656174655f6163636f756e745f756e636865636b6564196372656174655f61757468656e7469636174696f6e5f6b65791d6372656174655f636f72655f6672616d65776f726b5f6163636f756e740d6372656174655f7369676e6572086570696c6f677565096578697374735f6174166765745f61757468656e7469636174696f6e5f6b6579136765745f73657175656e63655f6e756d6265720a696e697469616c697a650f6d6f64756c655f70726f6c6f6775651b6d756c74695f6167656e745f7363726970745f70726f6c6f6775650f70726f6c6f6775655f636f6d6d6f6e19726f746174655f61757468656e7469636174696f6e5f6b657922726f746174655f61757468656e7469636174696f6e5f6b65795f696e7465726e616c0f7363726970745f70726f6c6f6775651177726974657365745f6570696c6f6775651177726974657365745f70726f6c6f6775651261757468656e7469636174696f6e5f6b65790f73657175656e63655f6e756d6265720c73656c665f616464726573730b6d6f64756c655f616464720b6d6f64756c655f6e616d65147363726970745f70726f6c6f6775655f6e616d65146d6f64756c655f70726f6c6f6775655f6e616d651677726974657365745f70726f6c6f6775655f6e616d65196d756c74695f6167656e745f70726f6c6f6775655f6e616d6512757365725f6570696c6f6775655f6e616d651677726974657365745f6570696c6f6775655f6e616d651663757272656e63795f636f64655f726571756972656408726567697374657211616c72656164795f7075626c697368656410696e76616c69645f617267756d656e7408746f5f6279746573066c656e6774680e626f72726f775f6164647265737306617070656e640e6173736572745f67656e6573697304436f696e0e6c696d69745f6578636565646564087769746864726177086275726e5f6665650a616464726573735f6f661072657175697265735f616464726573731169735f6d6f64756c655f616c6c6f7765640d696e76616c69645f737461746506626f72726f770b6e6f775f7365636f6e64730367657408736861335f3235360a62616c616e63655f6f660d6e6f745f7075626c69736865641169735f7363726970745f616c6c6f776564000000000000000000000000000000000000000000000000000000000000000103080000000000000000030807000000000000000308060000000000000003080400000000000000030805000000000000000308030000000000000003080a00000000000000030809000000000000000308020000000000000003080b0000000000000003080100000000000000030808000000000000000410ffffffffffffffff00000000000000000308ec030000000000000308ef030000000000000308ed030000000000000308e9030000000000000308f2030000000000000308f1030000000000000308f0030000000000000308f4030000000000000308f3030000000000000308eb030000000000000308ea030000000000000308ee0300000000000005200000000000000000000000000000000000000000000000000000000000000000052000000000000000000000000000000000000000000000000000000000000000010520000000000000000000000000000000000000000000000000000000000a550c18000203200a02210322050102092305240a02250a02260a02270a02280a02290a022a0a022b010002000005070b001101010c010e011113020101000001180a00290020030707001114270a00071922030e07031115270a00071a22031507021115270b001102020200000010170a0011050c020e0038000c010e01380106200000000000000021030e07051115270e020a010600000000000000000b0012002d000b020b01020300000004110b010c020d020b001118380038020e02380106200000000000000021030f07051115270b0202040300000507111a071a1102010c000b000205000200060000010016380a030a0426030707041115270b030b04170c080a02350a083518070c2503160704111b270b020b08180c0a0e000b0a111c0c070b07111d0e00111e0c060a0611090c090a0935070c23032e070a111b270b062a000c050b09060100000000000000160b050f0015020701000001030b00290002080100010001050b002b0010011402090100010001050b002b00100014020a01000001170a00111e071b21030a0b00010708111f270b000b010b020b030b040b050b060b070b080b0912012d01020b00000100010e1120030507121121270b000b010b020b030b040b050b06110d020c00000100193c0b000b010b020b050b060b070b08110d0e0338030c0a0e0438040a0a21031307141115270600000000000000000c090a090a0a23031a053b0e030a093805140c0b0a0b11070325070d1115270b0b2b000c0c0e040a093806140c0d0b0d0b0c10011421033607101115270b09060100000000000000160c090515020d000001001b5911230b0523030707181115270e00111e0c0a11240b06210311070e1115270a0a29000317070d1115270a0a2b000c090b0211250a091001142103260b090107101115270a0135070c2303300b09010715111b270a010a0910001426033b0b090107171115270b010b0910001421034407161115270b030b04180c080a0a1126034e070f1115270b0a11270c070b070b08260358070f111527020e0200010001040e000b01110f020f010001001c190b00111e0c030a031107030907001128270e01380106200000000000000021031107051115270b032a000c020b010b020f0115021000000100010f0e071129030607131121270b000b010b020b030b040b050b06110d02110000000103070b111527120000000103071111152700010000000000",
"bytecode": "0xa11ceb0b050000000c01001602160c0322d60104f8010e058602a80107ae03fb0708a90b2006c90be8020ab10e260cd70edd060db415040fb81502000100020003000400050006000700080009000a000b00010c00000c080006340400000d000100000e000200000f0002000010030400001101050000120005000013060100001400070000150004000016000800001709010000180a010000190b0100001a0a0100001b020100001c030100001d0c0100001e0d0100001f0e0100062c0f0100032d080800032e080800012f110401000a301308010005310f14000a32150101000733010100033508080005360f0000063700080006381718000839180100033a080800093b010700033c0808000a3d1a110100073e010800023f01120004400404000614000700034108080009421d07001600171219121700170423002304010500020c0a0202060c0a02010a02010c050c03030303010101030a060c050a020a020a020a020a020a020a0201070c030a0203030302090c030a020a050a0a0203030302080c030a02030303020a02030c0301050c030a02030201060c020a020c01060900010201060a090001060502070a09000a09000607080005080203030302060c03010802050303050608000a0202060a09000304030306080005020708000501060a020747656e65736973074163636f756e740342435307436861696e4964064572726f72730448617368065369676e65720854657374436f696e0954696d657374616d700e5472616e73616374696f6e4665651b5472616e73616374696f6e5075626c697368696e674f7074696f6e06566563746f7218436861696e53706563696669634163636f756e74496e666f0e6372656174655f6163636f756e74176372656174655f6163636f756e745f696e7465726e616c186372656174655f6163636f756e745f756e636865636b6564196372656174655f61757468656e7469636174696f6e5f6b65791d6372656174655f636f72655f6672616d65776f726b5f6163636f756e740d6372656174655f7369676e6572086570696c6f677565096578697374735f6174166765745f61757468656e7469636174696f6e5f6b6579136765745f73657175656e63655f6e756d6265720a696e697469616c697a650f6d6f64756c655f70726f6c6f6775651b6d756c74695f6167656e745f7363726970745f70726f6c6f6775650f70726f6c6f6775655f636f6d6d6f6e19726f746174655f61757468656e7469636174696f6e5f6b657922726f746174655f61757468656e7469636174696f6e5f6b65795f696e7465726e616c0f7363726970745f70726f6c6f6775651177726974657365745f6570696c6f6775651177726974657365745f70726f6c6f6775651261757468656e7469636174696f6e5f6b65790f73657175656e63655f6e756d6265720c73656c665f616464726573730b6d6f64756c655f616464720b6d6f64756c655f6e616d65147363726970745f70726f6c6f6775655f6e616d65146d6f64756c655f70726f6c6f6775655f6e616d651677726974657365745f70726f6c6f6775655f6e616d65196d756c74695f6167656e745f70726f6c6f6775655f6e616d6512757365725f6570696c6f6775655f6e616d651677726974657365745f6570696c6f6775655f6e616d651663757272656e63795f636f64655f726571756972656408726567697374657211616c72656164795f7075626c697368656410696e76616c69645f617267756d656e7408746f5f6279746573066c656e6774680e626f72726f775f6164647265737306617070656e640e6173736572745f67656e6573697304436f696e0e6c696d69745f65786365656465640a616464726573735f6f660a62616c616e63655f6f66087769746864726177086275726e5f6665651072657175697265735f616464726573731169735f6d6f64756c655f616c6c6f7765640d696e76616c69645f737461746506626f72726f770b6e6f775f7365636f6e64730367657408736861335f3235360d6e6f745f7075626c69736865641169735f7363726970745f616c6c6f776564000000000000000000000000000000000000000000000000000000000000000103080000000000000000030807000000000000000308060000000000000003080400000000000000030805000000000000000308030000000000000003080a00000000000000030809000000000000000308020000000000000003080b0000000000000003080100000000000000030808000000000000000410ffffffffffffffff00000000000000000308ec030000000000000308ef030000000000000308ed030000000000000308e9030000000000000308f2030000000000000308f1030000000000000308f0030000000000000308f4030000000000000308f3030000000000000308eb030000000000000308ea030000000000000308ee0300000000000005200000000000000000000000000000000000000000000000000000000000000000052000000000000000000000000000000000000000000000000000000000000000010520000000000000000000000000000000000000000000000000000000000a550c18000203200a02210322050102092305240a02250a02260a02270a02280a02290a022a0a022b010002000005070b001101010c010e011113020101000001180a00290020030707001114270a00071922030e07031115270a00071a22031507021115270b001102020200000010170a0011050c020e0038000c010e01380106200000000000000021030e07051115270e020a010600000000000000000b0012002d000b020b01020300000004110b010c020d020b001118380038020e02380106200000000000000021030f07051115270b0202040300000507111a071a1102010c000b000205000200060000010016400a030a0426030707041115270b030b04170c080a02350a083518070c2503160704111b270b020b08180c0a0e00111c0c060a06111d0a0a260325070f111b270e000b0a111e0c070b07111f0a0611090c090a0935070c230336070a111b270b062a000c050b09060100000000000000160b050f0015020701000001030b00290002080100010001050b002b0010011402090100010001050b002b00100014020a01000001170a00111c071b21030a0b000107081120270b000b010b020b030b040b050b060b070b080b0912012d01020b00000100010e1121030507121122270b000b010b020b030b040b050b06110d020c00000100193c0b000b010b020b050b060b070b08110d0e0338030c0a0e0438040a0a21031307141115270600000000000000000c090a090a0a23031a053b0e030a093805140c0b0a0b11070325070d1115270b0b2b000c0c0e040a093806140c0d0b0d0b0c10011421033607101115270b09060100000000000000160c090515020d000001001b5911240b0523030707181115270e00111c0c0a11250b06210311070e1115270a0a29000317070d1115270a0a2b000c090b0211260a091001142103260b090107101115270a0135070c2303300b09010715111b270a010a0910001426033b0b090107171115270b010b0910001421034407161115270b030b04180c080a0a1127034e070f1115270b0a111d0c070b070b08260358070f111527020e0200010001040e000b01110f020f010001001c190b00111c0c030a031107030907001128270e01380106200000000000000021031107051115270b032a000c020b010b020f0115021000000100010f0e071129030607131122270b000b010b020b030b040b050b06110d02110000000103070b111527120000000103071111152700010000000000",
"abi": {
"address": "0x1",
"name": "Account",
Expand Down
Loading

0 comments on commit e57be6b

Please sign in to comment.