MCPcopy Create free account
hub / github.com/base/base / predict_token_address

Method predict_token_address

etc/systems/src/b20.rs:229–231  ·  view source on GitHub ↗

Computes the token address a factory creation call will use.

(&self, variant: B20Variant, salt: B256)

Source from the content-addressed store, hash-verified

227
228 /// Computes the token address a factory creation call will use.
229 pub fn predict_token_address(&self, variant: B20Variant, salt: B256) -> Address {
230 variant.compute_address(self.signer.address(), salt).0
231 }
232
233 /// Waits for a created token address to return non-empty bytecode.
234 pub async fn wait_for_token_code(

Calls 2

compute_addressMethod · 0.45
addressMethod · 0.45