Skip to content

Commit 94246c6

Browse files
committed
feat(contracts): update deprecated getUpdateFee
1 parent d92749d commit 94246c6

File tree

1 file changed

+5
-1
lines changed
  • target_chains/ethereum/contracts/contracts/pyth

1 file changed

+5
-1
lines changed

target_chains/ethereum/contracts/contracts/pyth/Pyth.sol

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ abstract contract Pyth is
8686
// In the accumulator update data a single update can contain
8787
// up to 255 messages and we charge a singleUpdateFee per each
8888
// message
89-
return 255 * singleUpdateFeeInWei() * updateDataSize;
89+
return
90+
255 *
91+
singleUpdateFeeInWei() *
92+
updateDataSize +
93+
transactionFeeInWei();
9094
}
9195

9296
function getUpdateFee(

0 commit comments

Comments
 (0)