Skip to content

Commit 117feca

Browse files
authored
Bump nim-web3 to c76ddefea96e7763c3cc5b28ec5cbac1adefc4e7 (#6670)
- Fix AuthorizationObject fields name to v, r, s
1 parent 5d940b4 commit 117feca

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

beacon_chain/libnimbus_lc/libnimbus_lc.nim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@ proc ETHTransactionsCreateFromJson(
15621562
if data.authorizationList.isSome:
15631563
for authorization in data.authorizationList.get:
15641564
static: doAssert sizeof(uint64) == sizeof(authorization.chainId)
1565-
if distinctBase(authorization.yParity) > uint8.high:
1565+
if distinctBase(authorization.v) > uint8.high:
15661566
return nil
15671567
let
15681568
tx = eth_types.EthTransaction(
@@ -1602,9 +1602,9 @@ proc ETHTransactionsCreateFromJson(
16021602
chainId: it.chainId.ChainId,
16031603
address: distinctBase(it.address).to(EthAddress),
16041604
nonce: distinctBase(it.nonce),
1605-
v: distinctBase(it.yParity),
1606-
r: it.R,
1607-
s: it.S))
1605+
v: distinctBase(it.v),
1606+
r: it.r,
1607+
s: it.s))
16081608
else:
16091609
@[],
16101610
V: distinctBase(data.v),

beacon_chain/libnimbus_lc/test_files/transactions.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,17 +318,17 @@
318318
"chainId": "0x0",
319319
"address": "0x3031323334353637383940414243444546474849",
320320
"nonce": "0x0",
321-
"yParity": "0x1",
322-
"R": "0xa4be86c16c6d3a2b907660b24187d0b30b69f6db3e6e8e7a7bb1183a4706d454",
323-
"S": "0x28aba84cdee6059dde41620422959d01da4f6cfff21a9b97036db018f1d815f6"
321+
"v": "0x1",
322+
"r": "0xa4be86c16c6d3a2b907660b24187d0b30b69f6db3e6e8e7a7bb1183a4706d454",
323+
"s": "0x28aba84cdee6059dde41620422959d01da4f6cfff21a9b97036db018f1d815f6"
324324
},
325325
{
326326
"chainId": "0x1",
327327
"address": "0x5051525354555657585960616263646566676869",
328328
"nonce": "0x309",
329-
"yParity": "0x1",
330-
"R": "0xa4be86c16c6d3a2b907660b24187d0b30b69f6db3e6e8e7a7bb1183a4706d454",
331-
"S": "0x28aba84cdee6059dde41620422959d01da4f6cfff21a9b97036db018f1d815f6"
329+
"v": "0x1",
330+
"r": "0xa4be86c16c6d3a2b907660b24187d0b30b69f6db3e6e8e7a7bb1183a4706d454",
331+
"s": "0x28aba84cdee6059dde41620422959d01da4f6cfff21a9b97036db018f1d815f6"
332332
}
333333
],
334334
"v": "0x1",

0 commit comments

Comments
 (0)