Skip to content

Commit 9c68828

Browse files
authored
resolve duplicate error codes (#40)
1 parent fcf6a45 commit 9c68828

File tree

12 files changed

+6
-6
lines changed

12 files changed

+6
-6
lines changed

precompile/binaries/minlib/math64.mv

38 Bytes
Binary file not shown.
30 Bytes
Binary file not shown.
88 Bytes
Binary file not shown.

precompile/binaries/stdlib/math64.mv

38 Bytes
Binary file not shown.
30 Bytes
Binary file not shown.
88 Bytes
Binary file not shown.

precompile/modules/initia_stdlib/sources/crypto/secp256k1.move

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module initia_std::secp256k1 {
1414
const E_WRONG_SIGNATURE_SIZE: u64 = 2;
1515

1616
/// Wrong number of bytes were given as message.
17-
const E_WRONG_MESSAGE_SIZE: u64 = 2;
17+
const E_WRONG_MESSAGE_SIZE: u64 = 3;
1818

1919
//
2020
// constants

precompile/modules/initia_stdlib/sources/math64.move

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module initia_std::math64 {
66

77
/// Abort value when an invalid argument is provided.
88
const EINVALID_ARG_FLOOR_LOG2: u64 = 1;
9-
const EDIVISION_BY_ZERO: u64 = 1;
9+
const EDIVISION_BY_ZERO: u64 = 2;
1010

1111
/// Return the largest of two numbers.
1212
public fun max(a: u64, b: u64): u64 {

precompile/modules/initia_stdlib/sources/multisig.move

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module initia_std::multisig {
3030

3131
const ENOT_PASS: u64 = 8;
3232

33-
const EPROPOSAL_NOT_FOUND: u64 = 8;
33+
const EPROPOSAL_NOT_FOUND: u64 = 9;
3434

3535
// constants
3636

precompile/modules/minitia_stdlib/sources/crypto/secp256k1.move

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module minitia_std::secp256k1 {
1414
const E_WRONG_SIGNATURE_SIZE: u64 = 2;
1515

1616
/// Wrong number of bytes were given as message.
17-
const E_WRONG_MESSAGE_SIZE: u64 = 2;
17+
const E_WRONG_MESSAGE_SIZE: u64 = 3;
1818

1919
//
2020
// constants

precompile/modules/minitia_stdlib/sources/math64.move

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module minitia_std::math64 {
66

77
/// Abort value when an invalid argument is provided.
88
const EINVALID_ARG_FLOOR_LOG2: u64 = 1;
9-
const EDIVISION_BY_ZERO: u64 = 1;
9+
const EDIVISION_BY_ZERO: u64 = 2;
1010

1111
/// Return the largest of two numbers.
1212
public fun max(a: u64, b: u64): u64 {

precompile/modules/minitia_stdlib/sources/multisig.move

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module minitia_std::multisig {
3030

3131
const ENOT_PASS: u64 = 8;
3232

33-
const EPROPOSAL_NOT_FOUND: u64 = 8;
33+
const EPROPOSAL_NOT_FOUND: u64 = 9;
3434

3535
// constants
3636

0 commit comments

Comments
 (0)