Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Commit fff5189

Browse files
committed
SHA3256->SHA3_256
From code review suggestion renamed opSHA3256 to opSHA3_256 in the eval.go and opcodes.go file
1 parent 510b04d commit fff5189

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

data/transactions/logic/eval.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ func opSHA256(cx *EvalContext) {
902902
}
903903

904904
// The NIST SHA3-256 is implemented for compatability with ICON
905-
func opSHA3256(cx *EvalContext) {
905+
func opSHA3_256(cx *EvalContext) {
906906
last := len(cx.stack) - 1
907907
hasher := sha3.New256()
908908
hasher.Write(cx.stack[last].Bytes)

data/transactions/logic/opcodes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ var OpSpecs = []OpSpec{
295295
{0x95, "expw", opExpw, asmDefault, disDefault, twoInts, twoInts, 4, modeAny, costly(10)},
296296

297297
//More Hash Functions
298-
{0x96, "sha3_256", opSHA3256, asmDefault, disDefault, oneBytes, oneBytes, 6, modeAny, costly(130)},
298+
{0x96, "sha3_256", opSHA3_256, asmDefault, disDefault, oneBytes, oneBytes, 6, modeAny, costly(130)},
299299

300300
// Byteslice math.
301301
{0xa0, "b+", opBytesPlus, asmDefault, disDefault, twoBytes, oneBytes, 4, modeAny, costly(10)},

0 commit comments

Comments
 (0)