From 3498203d546326007cf889bfb91c56c7ba6a29f6 Mon Sep 17 00:00:00 2001 From: shunjizhan Date: Thu, 2 Nov 2023 12:29:54 +0800 Subject: [PATCH] fix evm error code --- .../types/src/interfaces/evm/definitions.ts | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/packages/types/src/interfaces/evm/definitions.ts b/packages/types/src/interfaces/evm/definitions.ts index abca620..8fe4349 100644 --- a/packages/types/src/interfaces/evm/definitions.ts +++ b/packages/types/src/interfaces/evm/definitions.ts @@ -116,21 +116,22 @@ export default { }, ExitError: { _enum: { - StackUnderflow: 'Null', - StackOverflow: 'Null', - InvalidJump: 'Null', - InvalidRange: 'Null', - DesignatedInvalid: 'Null', - CallTooDeep: 'Null', - CreateCollision: 'Null', - CreateContractLimit: 'Null', - OutOfOffset: 'Null', - OutOfGas: 'Null', - OutOfFund: 'Null', - PCUnderflow: 'Null', - CreateEmpty: 'Null', - Other: 'Text', - InvalidCode: 'u8', + StackUnderflow: 'Null', // 0 + StackOverflow: 'Null', // 1 + InvalidJump: 'Null', // 2 + InvalidRange: 'Null', // 3 + DesignatedInvalid: 'Null', // 4 + CallTooDeep: 'Null', // 5 + CreateCollision: 'Null', // 6 + CreateContractLimit: 'Null', // 7 + OutOfOffset: 'Null', // 8 + OutOfGas: 'Null', // 9 + OutOfFund: 'Null', // 10 + PCUnderflow: 'Null', // 11 + CreateEmpty: 'Null', // 12 + Other: 'Text', // 13 + MaxNonce: null, // 14 + InvalidCode: 'u8', // 15 }, }, ExitRevert: {